Quick win #1: Test coverage for CardBack game object Tests cover: - Constructor with sprite (texture exists) - Constructor with fallback graphics (texture missing) - Initial positioning and sizing - setCardSize() for all sizes (small, medium, large) - setSize() alias for method chaining - getDimensions() returns correct values - Fallback graphics rendering (background, border, pattern, emblem) - destroy() cleanup for both sprite and graphics paths - Integration tests for full lifecycle Results: - 25 new tests, all passing - CardBack coverage: 0% → ~95% - Game engine coverage starting point established - Phaser mocking pattern validated All tests pass (1025/1025) |
||
|---|---|---|
| .. | ||
| 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.