Enforces strict Test-Driven Development patterns for React, Vite, and TypeScript applications using Vitest and React Testing Library.
This skill establishes a disciplined Red-Green-Refactor cycle for React development, ensuring that no implementation code is written without a preceding failing test. It optimizes the developer workflow by providing clear boundaries for mocking with MSW, emphasizing behavioral testing over implementation details, and preventing common anti-patterns. By following the 'Iron Laws' of TDD, it helps developers build robust, bug-resistant features while maintaining a clean, refactorable codebase in modern Vite and TypeScript environments.
主な機能
01Standardized MSW API mocking boundaries
02Optimized for Vitest and React Testing Library
03Behavioral test planning with 'Bug It Catches' tables
040 GitHub stars
05Anti-pattern detection and resolution guidance
06Strict Red-Green-Refactor cycle enforcement
ユースケース
01Safely refactoring complex components and custom hooks
02Building new React features from scratch with 100% test coverage
03Fixing production bugs by reproducing them with failing tests first