mantimon-tcg/frontend
Cal Corum 345ef7af9d Create Phaser testing infrastructure - TEST-001 complete (55 tests)
Build foundation for game engine testing with comprehensive mocks and utilities:

Infrastructure Created:
- src/test/mocks/phaser.ts (33 tests)
  * MockEventEmitter - Event system with on/once/off/emit
  * MockScene - Scene lifecycle and factories
  * MockGame - Game instance with scale and scene manager
  * MockContainer - Game object container with child management
  * MockSprite - Image sprites with texture support
  * MockText - Styled text objects
  * MockGraphics - Shape drawing API
  * MockLoader - Asset loading simulation

- src/test/helpers/gameTestUtils.ts (22 tests)
  * createMockGameState() - Complete game state with players
  * createMockCardDefinition() - Card definitions with type helpers
  * createMockCardInstance() - Card instances with damage/status
  * createGameScenario() - Full game setups with cards in zones
  * setupMockScene() - Scene setup with game instance
  * Type-specific helpers: createMockPokemonCard(), createMockEnergyCard(), etc.

- src/test/README.md
  * Complete documentation with usage examples
  * Testing patterns and best practices
  * Troubleshooting guide

This infrastructure enables testing of all Phaser game objects (Board, Card, Zone,
MatchScene, etc.) without requiring WebGL/Canvas. All 1,256 tests passing.

Foundation for TEST-002 through TEST-009 (scene and state testing).

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-03 10:25:51 -06:00
..
project_plans Add Phase F4 live gameplay project plan 2026-02-01 20:52:20 -06:00
public Add Phaser game asset placeholders 2026-02-01 20:51:35 -06:00
src Create Phaser testing infrastructure - TEST-001 complete (55 tests) 2026-02-03 10:25:51 -06:00
.env.development Add dev-server skill and update development ports 2026-01-30 11:56:25 -06:00
.env.production Add environment config and Vue Router with guards (F0-003, F0-008) 2026-01-30 10:59:04 -06:00
.gitignore Fix prize zone rendering in Mantimon TCG mode (#2) 2026-02-02 15:30:27 -06:00
CLAUDE.md Add environment config and Vue Router with guards (F0-003, F0-008) 2026-01-30 10:59:04 -06:00
eslint.config.js Scaffold Vue 3 + TypeScript frontend (Phase F0) 2026-01-30 09:23:53 -06:00
index.html Scaffold Vue 3 + TypeScript frontend (Phase F0) 2026-01-30 09:23:53 -06:00
package-lock.json Fix prize zone rendering in Mantimon TCG mode (#2) 2026-02-02 15:30:27 -06:00
package.json Fix prize zone rendering in Mantimon TCG mode (#2) 2026-02-02 15:30:27 -06:00
postcss.config.js Scaffold Vue 3 + TypeScript frontend (Phase F0) 2026-01-30 09:23:53 -06:00
PROJECT_PLAN_FRONTEND.json Update frontend project plan progress 2026-02-01 20:51:19 -06:00
PROJECT_PLAN_TEST_COVERAGE.json Create Phaser testing infrastructure - TEST-001 complete (55 tests) 2026-02-03 10:25:51 -06:00
README.md Scaffold Vue 3 + TypeScript frontend (Phase F0) 2026-01-30 09:23:53 -06:00
TEST_COVERAGE_PLAN.md Create Phaser testing infrastructure - TEST-001 complete (55 tests) 2026-02-03 10:25:51 -06:00
tsconfig.app.json Scaffold Vue 3 + TypeScript frontend (Phase F0) 2026-01-30 09:23:53 -06:00
tsconfig.json Scaffold Vue 3 + TypeScript frontend (Phase F0) 2026-01-30 09:23:53 -06:00
tsconfig.node.json Scaffold Vue 3 + TypeScript frontend (Phase F0) 2026-01-30 09:23:53 -06:00
vite.config.ts Update Vite config for test environment 2026-02-01 20:51:12 -06:00
vitest.config.ts Scaffold Vue 3 + TypeScript frontend (Phase F0) 2026-01-30 09:23:53 -06:00

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.