← Browse by Chapter
Get the Book →
#68Chapter 17 — TDD with Claude Code
Generate a test scaffold for `[function name]`. The function takes [describe inputs] and returns [describe output]. Write describe/it blocks with arrange-act-assert for these scenarios: [list test cases — e.g., "empty input returns zero, single item domestic, single item international, oversized item throws error"]. Use literal expected values, not function calls. Set `/effort low`.

Mastering Claude Code
These prompts are excerpts from the book. Get the full collection with explanations and use cases.