test: simplify vitest runner pools

This commit is contained in:
Peter Steinberger
2026-03-22 16:22:04 -07:00
parent 4ee41cc6f3
commit d0f5e7cb2d
12 changed files with 28 additions and 184 deletions

View File

@@ -31,9 +31,9 @@ export default defineConfig({
testTimeout: 120_000,
hookTimeout: isWindows ? 180_000 : 120_000,
// Many suites rely on `vi.stubEnv(...)` and expect it to be scoped to the test.
// This is especially important under `pool=vmForks` where env leaks cross-file.
// Keep env restoration automatic so shared-worker runs do not leak state.
unstubEnvs: true,
// Same rationale as unstubEnvs: avoid cross-test pollution under vmForks.
// Same rationale as unstubEnvs: avoid cross-test pollution from shared globals.
unstubGlobals: true,
pool: "forks",
maxWorkers: isCI ? ciWorkers : localWorkers,