Skip to content

Commit af59772

Browse files
fix(tests): limit parallelism
1 parent 213ecf2 commit af59772

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/vitest.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { availableParallelism } from 'node:os';
2+
13
import { defineConfig } from 'vitest/config';
24

35
const DEFAULT_TIMEOUT_MS = 120_000;
@@ -10,6 +12,7 @@ export default defineConfig({
1012
test: {
1113
reporters: REPORTERS,
1214
disableConsoleIntercept: true,
15+
maxConcurrency: Math.max(availableParallelism() / 2, 5),
1316
printConsoleTrace: true,
1417
passWithNoTests: false,
1518
include: ['test/**/*.js'],

0 commit comments

Comments
 (0)