Skip to content

Commit 1cadcb3

Browse files
committed
ci(jest): improve typings and up max concurrency for improved perf
1 parent 00712c0 commit 1cadcb3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

jest.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
'use strict';
22

3+
/**
4+
* @type {import('jest').Config}
5+
*/
36
module.exports = {
47
restoreMocks: true,
58
resetMocks: true,
69
testEnvironment: 'node',
710
testRunner: 'jest-circus/runner',
811
// ? 24h if debugging so MMS and other tools don't choke, otherwise 1m
912
testTimeout: 1000 * 60 * (process.env.VSCODE_INSPECTOR_OPTIONS ? 60 * 24 : 1),
13+
maxConcurrency: require('node:os').cpus().length - 1,
1014
verbose: false,
1115
testPathIgnorePatterns: ['/node_modules/', '/dist/'],
1216
setupFilesAfterEnv: ['./test/setup.ts'],

0 commit comments

Comments
 (0)