diff --git a/packages/jest-config/src/getMaxWorkers.ts b/packages/jest-config/src/getMaxWorkers.ts index fbd015ddc9fe..810c60ffa13b 100644 --- a/packages/jest-config/src/getMaxWorkers.ts +++ b/packages/jest-config/src/getMaxWorkers.ts @@ -15,7 +15,7 @@ import type {Config} from '@jest/types'; function getNumCpus(): number { return typeof availableParallelism === 'function' ? availableParallelism() - : cpus()?.length ?? 1; + : (cpus()?.length ?? 1); } export default function getMaxWorkers(