test-behavior-not-implementation
Installation
SKILL.md
Testing Trophy
Testing philosophy for React and TypeScript projects. Based on Kent C. Dodds' Testing Trophy and TkDodo's testing principles.
Testing Trophy Priorities
From most to least valuable:
- Integration tests — test multiple units working together (highest confidence per effort)
- Unit tests — test individual functions in isolation
- End-to-end tests — test full user flows (highest confidence, highest cost)
- Static analysis — TypeScript, ESLint (cheapest, catches typos and type errors)
"The more your tests resemble the way your software is used, the more confidence they can give you." — Kent C. Dodds