Commit dc2485e
authored
Pinned vitest pool to forks in createVitestConfig (#27691)
no ref
This is a small adjustment for (what is currently) the posts, stats, and admin-x-settings. We've observed some occasional flakiness that seems to be from crossing boundaries, and moving to forks is going to be a slight perf hit but given this is what are otherwise-speedy unit tests with a limited app scope, it seems fine for now.
Switch the shared `createVitestConfig` from Vitest's default `threads`
pool to `forks`. Forks runs each worker as a separate child process,
giving stronger isolation than threads (which run in separate V8
isolates but still share the Node process — and therefore process-scoped
state).1 parent d128c64 commit dc2485e
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
45 | 49 | | |
46 | 50 | | |
47 | 51 | | |
| |||
0 commit comments