Fix npm test if os.cpus().length == 1 (#35753)
This commit is contained in:
parent
98492d8daf
commit
0a7d54d104
|
@ -456,7 +456,7 @@ task("runtests").flags = {
|
|||
" --shardId": "1-based ID of this shard (default: 1)",
|
||||
};
|
||||
|
||||
const runTestsParallel = () => runConsoleTests("built/local/run.js", "min", /*runInParallel*/ true, /*watchMode*/ false);
|
||||
const runTestsParallel = () => runConsoleTests("built/local/run.js", "min", /*runInParallel*/ cmdLineOptions.workers > 1, /*watchMode*/ false);
|
||||
task("runtests-parallel", series(preBuild, preTest, runTestsParallel, postTest));
|
||||
task("runtests-parallel").description = "Runs all the tests in parallel using the built run.js file.";
|
||||
task("runtests-parallel").flags = {
|
||||
|
|
Loading…
Reference in a new issue