Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[Tech Debt] Add unit tests for start screen API

Đang mở
#626 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
68/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
typescript
Lĩnh vực
testing

Hướng nghiên cứu

Start by reading PR #618 and the start-screen code in packages/lua-runtime/src/CanvasController.ts, packages/canvas-runtime/src/worker/LuaCanvasRuntime.ts, and packages/canvas-runtime/src/process/LuaCanvasProcess.ts. Create or update the named start-screen test files, covering callbacks, waiting state, overlay rendering, dismissal interactions, and callback errors. Run the relevant test suite and confirm all listed behaviors are covered.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

tech-debt

Description

The start screen feature (PR #618) lacks automated unit tests. The following functionality needs test coverage:

  1. canvas.set_start_screen(callback) - custom callback invocation
  2. canvas.is_waiting_for_interaction() - return value correctness
  3. Start screen overlay rendering (default overlay)
  4. Interaction detection and start screen dismissal (click/keypress)
  5. Error handling when custom callback throws

Location

Test Files to Create/Update

  • packages/lua-runtime/tests/CanvasController.startScreen.test.ts
  • packages/canvas-runtime/tests/worker/LuaCanvasRuntime.startScreen.test.ts

Found In

PR #618 - feat: Add "Click to Start" overlay for exported games with audio (#617)

Priority

P2-Medium - Tests improve confidence in browser audio policy handling

Ngôn ngữ chính
TypeScript
Star
1
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của jcollard/LuaInTheWeb

Tất cả issue của jcollard/LuaInTheWeb

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.