Loading...
Loading...
Write tests before implementation code. Use when starting new features or fixing bugs. Covers Red-Green-Refactor cycle and TDD best practices.
npx skill4agent add dralgorhythm/claude-agentic-framework test-driven-developmentdescribe("Calculator", () => {
test("adds two numbers", () => {
const calc = new Calculator();
expect(calc.add(2, 3)).toBe(5);
});
});
// Run: FAIL - Calculator is not definedclass Calculator {
add(a: number, b: number): number {
return a + b;
}
}
// Run: PASStest("subtracts two numbers", () => {
const calc = new Calculator();
expect(calc.subtract(5, 3)).toBe(2);
});
// Run: FAIL - subtract is not defined