Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jest-config

Package Overview
Dependencies
Maintainers
6
Versions
307
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-config - npm Package Compare versions

Comparing version 29.3.1 to 29.4.0

.eslintcache

10

build/getMaxWorkers.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc