mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-27 09:21:35 +07:00
test: simplify vitest runner pools
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user