jest-config
Advanced tools
Comparing version 29.3.1 to 29.4.0
@@ -21,2 +21,7 @@ 'use strict'; | ||
function getNumCpus() { | ||
return typeof _os().availableParallelism === 'function' | ||
? (0, _os().availableParallelism)() | ||
: (0, _os().cpus)()?.length ?? 1; | ||
} | ||
function getMaxWorkers(argv, defaultOptions) { | ||
@@ -31,4 +36,3 @@ if (argv.runInBand) { | ||
// In watch mode, Jest should be unobtrusive and not use all available CPUs. | ||
const cpusInfo = (0, _os().cpus)(); | ||
const numCpus = cpusInfo?.length ?? 1; | ||
const numCpus = getNumCpus(); | ||
const isWatchModeEnabled = argv.watch || argv.watchAll; | ||
@@ -49,3 +53,3 @@ return Math.max( | ||
) { | ||
const numCpus = (0, _os().cpus)().length; | ||
const numCpus = getNumCpus(); | ||
const workers = Math.floor((parsed / 100) * numCpus); | ||
@@ -52,0 +56,0 @@ return Math.max(workers, 1); |
{ | ||
"name": "jest-config", | ||
"version": "29.3.1", | ||
"version": "29.4.0", | ||
"repository": { | ||
@@ -33,5 +33,5 @@ "type": "git", | ||
"@babel/core": "^7.11.6", | ||
"@jest/test-sequencer": "^29.3.1", | ||
"@jest/types": "^29.3.1", | ||
"babel-jest": "^29.3.1", | ||
"@jest/test-sequencer": "^29.4.0", | ||
"@jest/types": "^29.4.0", | ||
"babel-jest": "^29.4.0", | ||
"chalk": "^4.0.0", | ||
@@ -42,13 +42,13 @@ "ci-info": "^3.2.0", | ||
"graceful-fs": "^4.2.9", | ||
"jest-circus": "^29.3.1", | ||
"jest-environment-node": "^29.3.1", | ||
"jest-circus": "^29.4.0", | ||
"jest-environment-node": "^29.4.0", | ||
"jest-get-type": "^29.2.0", | ||
"jest-regex-util": "^29.2.0", | ||
"jest-resolve": "^29.3.1", | ||
"jest-runner": "^29.3.1", | ||
"jest-util": "^29.3.1", | ||
"jest-validate": "^29.3.1", | ||
"jest-resolve": "^29.4.0", | ||
"jest-runner": "^29.4.0", | ||
"jest-util": "^29.4.0", | ||
"jest-validate": "^29.4.0", | ||
"micromatch": "^4.0.4", | ||
"parse-json": "^5.2.0", | ||
"pretty-format": "^29.3.1", | ||
"pretty-format": "^29.4.0", | ||
"slash": "^3.0.0", | ||
@@ -61,2 +61,3 @@ "strip-json-comments": "^3.1.1" | ||
"@types/micromatch": "^4.0.1", | ||
"@types/parse-json": "^4.0.0", | ||
"semver": "^7.3.5", | ||
@@ -72,3 +73,3 @@ "ts-node": "^10.5.0", | ||
}, | ||
"gitHead": "05deb8393c4ad71e19be2567b704dfd3a2ab5fc9" | ||
"gitHead": "4bc0e8acaf990e6618a7bed1dca67760c20bb12a" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
164549
22
3544
7
Updated@jest/test-sequencer@^29.4.0
Updated@jest/types@^29.4.0
Updatedbabel-jest@^29.4.0
Updatedjest-circus@^29.4.0
Updatedjest-resolve@^29.4.0
Updatedjest-runner@^29.4.0
Updatedjest-util@^29.4.0
Updatedjest-validate@^29.4.0
Updatedpretty-format@^29.4.0