Skip to content

Commit bfbf4c9

Browse files
committed
Merge pull request jestjs#91 from spicyj/max-1
Always start at least one worker process
2 parents b0b3e8e + cff1410 commit bfbf4c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TestRunner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var DEFAULT_OPTIONS = {
2424
* It's probably good to keep this at something close to the number of cores
2525
* on the machine that's running the test.
2626
*/
27-
maxWorkers: os.cpus().length - 1,
27+
maxWorkers: Math.max(os.cpus().length - 1, 1),
2828

2929
/**
3030
* The path to the executable node binary.

0 commit comments

Comments
 (0)