What problem does it solve?
This Skill helps teams maintain high-quality code by guiding the creation and maintenance of tests that follow project conventions, ensuring tests are colocated with source files for faster discovery and execution.
Core Features & Use Cases
- Colocated testing: Place tests next to the code they cover, reducing context switching.
- Vitest-based: Uses Vitest for fast, running tests with familiar syntax.
- Auth, mocks, and DB testing: Provides patterns for authenticated routes, MSW mocks, and in-memory PostgreSQL setups.
- CI-friendly: Encourages test-driven practices that improve reliability and faster feedback.
Quick Start
Run tests with pnpm test to verify all colocated tests run. To add a new test, place it next to the related source file (for example, place a test alongside utils.ts as utils.test.ts) and rerun pnpm test to confirm it passes.