Skip to content

Commit 2dfc8e4

Browse files
committed
test: cap root Jest worker usage
Limit root Jest parallelism so native-heavy test runs stay usable on developer machines and shared CI hosts.
1 parent afb236b commit 2dfc8e4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
"test:default": "npm run test:jest",
2626
"test:linux:darwin": "npm run test:jest && cd tests && sh ../scripts/run_all.sh fuzz",
2727
"test:win32": "npm run test:jest && cd tests && ..\\scripts\\run_all.bat fuzz",
28-
"test:jest": "jest && npm run test --ws --if-present",
29-
"test:jest:coverage": "jest --coverage",
30-
"test:jest:watch": "jest --watch",
28+
"test:jest": "jest --maxWorkers=25% && npm run test --ws --if-present -- --maxWorkers=25%",
29+
"test:jest:coverage": "jest --coverage --maxWorkers=25%",
30+
"test:jest:watch": "jest --watch --maxWorkers=25%",
3131
"example": "run-script-os",
3232
"example:linux:darwin": "cd examples && sh ../scripts/run_all.sh dryRun",
3333
"example:win32": "cd examples && ..\\scripts\\run_all.bat dryRun",

0 commit comments

Comments
 (0)