From 5c69f3f5f2652e86bb8398d4d93cefd4ea2116ca Mon Sep 17 00:00:00 2001 From: Hiroshi Ogawa Date: Fri, 12 Apr 2024 17:40:07 +0900 Subject: [PATCH] fix(browser): disable `fileParallelism` by default on browser pool (#5528) --- packages/vitest/src/node/config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/vitest/src/node/config.ts b/packages/vitest/src/node/config.ts index 3d03d9824818..6ca6a4139fbb 100644 --- a/packages/vitest/src/node/config.ts +++ b/packages/vitest/src/node/config.ts @@ -140,6 +140,9 @@ export function resolveConfig( if (resolved.minWorkers) resolved.minWorkers = Number(resolved.minWorkers) + resolved.browser ??= {} as any + resolved.browser.fileParallelism ??= resolved.fileParallelism ?? false + // run benchmark sequentially by default resolved.fileParallelism ??= mode !== 'benchmark'