-
-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable parallel for spec tests (#4776)
- Loading branch information
Showing
1 changed file
with
3 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,8 @@ | ||
|
||
module.exports = { | ||
colors: true, | ||
require: ["./test/setupPreset.ts", "./test/setup.ts"], | ||
"node-option": [ | ||
"loader=ts-node/esm" | ||
], | ||
"node-option": ["loader=ts-node/esm"], | ||
timeout: 60_000, | ||
// Disable parallel locally for easier debugging | ||
parallel: Boolean(process.env.CI), | ||
// By default, Mocha’s maximum job count is n – 1, where n is the number of CPU cores | ||
// In Github actions the runner has only two cores, so force it to use two | ||
jobs: 2, | ||
// Do not run tests through workers, it's not proven to be faster than with `jobs: 2` | ||
parallel: false, | ||
}; |