File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments