qa-phaser-unit-testing
Installation
SKILL.md
Phaser Unit Testing Patterns
"Test Phaser game objects without a running game instance."
When to Use This Skill
Use when creating unit tests for:
- Phaser game objects (Birds, Pigs, Blocks, etc.)
- Matter.js physics bodies
- Game systems that depend on Phaser Scene
- Event-driven game logic
CRITICAL LESSON FROM BUG-011: Never use real Phaser Scene instances in unit tests. They require a running Phaser Game instance and will fail with errors like "scene.init is not a function". Always use MockScene pattern.