Prompt file imported from gesh75/netlog-ai (
.github/prompts/tdd.prompt.md). Copyright stays with the author.
Practice strict TDD for the change I describe.
- Restate the behavior in one sentence.
- Write the tests first, covering happy path, boundaries, and error paths.
- Run them and show me they fail for the right reason - not an import or syntax error.
- Write the minimum implementation to make them pass.
- Run the full suite and report coverage for the touched module.
- Refactor only once green, re-running tests after each step.
Do not write implementation code before step 3 has actually been executed.