Commit 1715116
committed
test: reset transaction mock implementations between repair-commands tests
vi.clearAllMocks() wipes call history but keeps implementations set via
mockImplementation, so the storage transaction mocks overridden inline by
individual tests bled into later tests. Reset all three in beforeEach;
their factory defaults are bare vi.fn(), so mockReset restores the exact
initial state.
https://claude.ai/code/session_01XNtnkLbBiXZxfQQYLMpucB1 parent 9beb20e commit 1715116
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
161 | 167 | | |
162 | 168 | | |
163 | 169 | | |
| |||
0 commit comments