Add comprehensive test coverage for the main game scene: Test Coverage: - Constructor and scene key registration - init() method - state reset - create() method - board setup, StateRenderer creation, event subscription - update() loop - intentionally minimal design - shutdown() method - cleanup and event unsubscription - Event handling - state updates and resize events - Event subscription lifecycle - proper bind/unbind - Integration tests - full lifecycle execution - Edge cases - rapid cycles, large states Key Testing Challenges Solved: - Phaser canvas dependency - mocked Phaser.Scene with minimal API - gameBridge integration - mocked event system with spy functions - StateRenderer mocking - included all necessary methods (clear, getPlayerZones, etc.) - Container API - added removeAll() for proper cleanup testing All 1,282 tests passing (26 new MatchScene tests). Foundation for TEST-004 (Card rendering) and TEST-005 (StateRenderer). Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| project_plans | ||
| public | ||
| src | ||
| .env.development | ||
| .env.production | ||
| .gitignore | ||
| CLAUDE.md | ||
| eslint.config.js | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.js | ||
| PROJECT_PLAN_FRONTEND.json | ||
| PROJECT_PLAN_TEST_COVERAGE.json | ||
| README.md | ||
| TEST_COVERAGE_PLAN.md | ||
| tsconfig.app.json | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite.config.ts | ||
| vitest.config.ts | ||
Vue 3 + TypeScript + Vite
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.
Learn more about the recommended Project Setup and IDE Support in the Vue Docs TypeScript Guide.