From c44a15fb9027e4e9b78f2e6e2b506a83d2348762 Mon Sep 17 00:00:00 2001 From: Hiroshi Ogawa Date: Fri, 12 Apr 2024 15:34:07 +0900 Subject: [PATCH] fix(browser): disable `fileParallelism` by default on browser pool --- packages/vitest/src/node/config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vitest/src/node/config.ts b/packages/vitest/src/node/config.ts index 3d03d9824818..5e17d3e4a7a7 100644 --- a/packages/vitest/src/node/config.ts +++ b/packages/vitest/src/node/config.ts @@ -140,8 +140,8 @@ export function resolveConfig( if (resolved.minWorkers) resolved.minWorkers = Number(resolved.minWorkers) - // run benchmark sequentially by default - resolved.fileParallelism ??= mode !== 'benchmark' + // browser pool and benchmark are sequential by default + resolved.fileParallelism ??= resolved.pool !== 'browser' && mode !== 'benchmark' if (!resolved.fileParallelism) { // ignore user config, parallelism cannot be implemented without limiting workers