Commit 3572568
fix(kernel-ui): reset mock state in afterEach to prevent cascading failures
Use resetMocks() in afterEach instead of manual restoration at the end
of the test body, so a mid-test assertion failure cannot leave isKRefMock
stuck at false for subsequent tests.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 9050993 commit 3572568
1 file changed
Lines changed: 2 additions & 3 deletions
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
112 | 113 | | |
113 | 114 | | |
114 | 115 | | |
| |||
203 | 204 | | |
204 | 205 | | |
205 | 206 | | |
206 | | - | |
207 | | - | |
208 | 207 | | |
209 | 208 | | |
210 | 209 | | |
| |||
0 commit comments