What problem does it solve?
Prevents production-code-first development by enforcing a failing test (RED) before any implementation, tailored to Angular, NestJS, and Next.js testing patterns.
Core Features & Use Cases
- RED state correctness: Ensures tests fail for the right reason (missing implementation) instead of broken tests or setup.
- GREEN minimal implementation: Guides writing the least code required to make the test pass without over-building.
- Refactor safely: Keeps behavior stable while extracting setup and improving clarity after tests pass.
- Framework-aware boilerplate: Provides Angular TestBed, NestJS Jest unit/integration patterns, and Next.js Jest testing approaches to avoid re-deriving setup.
Use case example: Implement a new service method in the correct behavior and verify it using the appropriate unit test scaffold; only after RED is achieved, add the minimal method logic, then refactor setup and rerun to confirm GREEN stays.
Quick Start
Invoke sdcorejs-tdd before implementing a service/component/function/handler in your write-code task to generate a failing test first, then follow red-green-refactor to reach passing tests.