We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 213ecf2 commit af59772Copy full SHA for af59772
test/vitest.ts
@@ -1,3 +1,5 @@
1
+import { availableParallelism } from 'node:os';
2
+
3
import { defineConfig } from 'vitest/config';
4
5
const DEFAULT_TIMEOUT_MS = 120_000;
@@ -10,6 +12,7 @@ export default defineConfig({
10
12
test: {
11
13
reporters: REPORTERS,
14
disableConsoleIntercept: true,
15
+ maxConcurrency: Math.max(availableParallelism() / 2, 5),
16
printConsoleTrace: true,
17
passWithNoTests: false,
18
include: ['test/**/*.js'],
0 commit comments