What problem does it solve?
It solves inconsistent, flaky, and hard-to-maintain tests by standardizing how to mock APIs, write async assertions, and select DOM queries in Vitest + Testing Library.
Core Features & Use Cases
- Async assertion patterns: Use the right Testing Library queries (findBy/queryBy/getBy) and wait utilities to avoid race conditions.
- Mocking strategy guidance: Choose MSW for HTTP-level mocking and vi.mock for module-level dependencies, plus clear decision rules.
- Behavior-first assertions: Assert semantic tokens and contract-like expectations rather than brittle className utility strings.
- Vitest API cheatsheet: Apply consistent mocking/spying lifecycle practices (clearAllMocks, restoreAllMocks) for deterministic results.
- Use cases: React component tests, integration tests that require API fakes, and server-side tests involving DB or socket.io patterns via referenced companion skills.
Quick Start
Tell the AI: "Help me write a stable Vitest + Testing Library test for this component, using MSW for the API and findByRole/queryBy patterns for async UI states."