Repository navigation
Commit 74be058
committed
test(header): always restore real timers to prevent flaky cascade
The 'should reorder columns on drag' test enables fake timers but only
restores them after its assertions. When a layout-timing-sensitive
assertion flaked on CI, vi.useRealTimers() was never reached, leaving
fake timers active. This froze setTimeout/whenStable in later tests and
spec files, producing unrelated 30s hook timeouts (e.g. in
footer.component.spec.ts). Restore real timers in afterEach so a failure
can no longer poison the rest of the suite.1 parent 7dfcb9a commit 74be058
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
29 | 33 | | |
30 | 34 | | |
31 | 35 | | |
| |||
50 | 54 | | |
51 | 55 | | |
52 | 56 | | |
53 | | - | |
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
| |||
245 | 248 | | |
246 | 249 | | |
247 | 250 | | |
248 | | - | |
249 | | - | |
250 | 251 | | |
251 | 252 | | |
252 | 253 | | |
| |||
0 commit comments