Skip to content

Commit 8f630a7

Browse files
Update CLAUDE.md
1 parent ad73e3f commit 8f630a7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

CLAUDE.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,18 @@ The repo uses Husky with lint-staged. On commit:
155155
- **Formatting**: Prettier 3.4.2
156156
- **CSS**: Sass 1.93.2
157157

158+
## Bug Fix Workflow (TDD)
159+
160+
When fixing bugs, always follow Test-Driven Development:
161+
162+
1. **Write the test first** - Create a failing test that reproduces the bug
163+
2. **Confirm it fails** - Run the test to verify it captures the broken behavior
164+
3. **Implement the fix** - Make the minimal code change to fix the issue
165+
4. **Verify the test passes** - Run the test again to confirm the fix works
166+
5. **Run full test suite** - Ensure no regressions with `yarn test:ci`
167+
168+
This ensures every bug fix has regression coverage and documents the expected behavior.
169+
158170
## Code Conventions
159171

160172
- **Prettier handles all code formatting** - don't worry about tabs vs spaces

0 commit comments

Comments
 (0)