Skip to content

Commit a2c996f

Browse files
committed
ci(jest): reduce concurrency for systems with only one cpu
1 parent 1277a78 commit a2c996f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

jest.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ module.exports = {
1717
: process.platform == 'win32'
1818
? 5
1919
: 1),
20-
// ? Minimum of 10 concurrent tests executed at once; maximum of cpu cores - 1
21-
maxConcurrency: Math.max(require('node:os').cpus().length - 1, 10),
20+
// ? Minimum of 2 concurrent tests executed at once; maximum of cpu cores - 1
21+
maxConcurrency: Math.max(require('node:os').cpus().length - 1, 2),
2222
verbose: false,
2323
testPathIgnorePatterns: ['/node_modules/', '/dist/'],
2424
setupFilesAfterEnv: ['./test/setup.ts'],

0 commit comments

Comments
 (0)