TestingClaude Code
TDD Starting Point
Write the failing test first, then implement
Prompt
I want to build [describe feature]. Before writing any implementation:
1. Write 3-5 tests that describe the expected behavior
2. Each test should currently fail (red)
3. Tests should be specific enough that there's only one way to make them pass
4. Include at least one edge case test
Use [test framework]. Don't write any implementation yet — just the tests.