What problem does it solve?
This Skill enforces Test-Driven Development (TDD) by ensuring that tests are written before any implementation code, preventing untested code from entering the codebase and guaranteeing robust software.
Core Features & Use Cases
- TDD Enforcement: Guarantees tests are written first, failing without implementation.
- Multi-Framework Support: Detects and works with Jest, Vitest, pytest, Cargo, Go test, Cypress, and Playwright.
- Comprehensive Test Coverage: Covers unit, integration, and E2E tests, including edge cases and error scenarios.
- Use Case: When developing a new authentication module, this Skill will first generate failing tests for login, logout, and password reset scenarios. Only after these tests are confirmed to fail will it allow implementation code to be written, ensuring the code directly addresses the defined test cases.
Quick Start
Use the test skill to write failing unit tests for the src/utils/formatDate.ts file, ensuring they cover valid date formats, invalid inputs, and edge cases.