Skip to content

Commit

Permalink
fix(browser): disable fileParallelism by default on browser pool
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Apr 12, 2024
1 parent 9e7a01c commit c44a15f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vitest/src/node/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c44a15f

Please sign in to comment.