Commit 33b5002
committed
Fix flaky CI frontend job: unmount React trees after each test
React 19's scheduler could flush deferred work after vitest tore down the
jsdom environment (window is not defined), failing the run on slow runners.
Register a global @testing-library/react cleanup in the vitest setup.1 parent 9096aea commit 33b5002
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
0 commit comments