mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
perf(test): auto-unstub globals
This commit is contained in:
@@ -21,6 +21,8 @@ export default defineConfig({
|
|||||||
// Many suites rely on `vi.stubEnv(...)` and expect it to be scoped to the test.
|
// 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.
|
// This is especially important under `pool=vmForks` where env leaks cross-file.
|
||||||
unstubEnvs: true,
|
unstubEnvs: true,
|
||||||
|
// Same rationale as unstubEnvs: avoid cross-test pollution under vmForks.
|
||||||
|
unstubGlobals: true,
|
||||||
pool: "forks",
|
pool: "forks",
|
||||||
maxWorkers: isCI ? ciWorkers : localWorkers,
|
maxWorkers: isCI ? ciWorkers : localWorkers,
|
||||||
include: ["src/**/*.test.ts", "extensions/**/*.test.ts", "test/format-error.test.ts"],
|
include: ["src/**/*.test.ts", "extensions/**/*.test.ts", "test/format-error.test.ts"],
|
||||||
|
|||||||
Reference in New Issue
Block a user