Skip to content

Commit

Permalink
Tests: Run all tests in Jest
Browse files Browse the repository at this point in the history
`splitAsync.test.js` still needs to be run in a separate process. Otherwise it causes unexplained malfunctions in other test files run in same worker.
  • Loading branch information
overlookmotel committed Dec 29, 2022
1 parent 45ba914 commit de89324
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 859 deletions.
1 change: 0 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ module.exports = {
'<rootDir>/test/support/expect.js',
'<rootDir>/test/support/register.js'
],
testPathIgnorePatterns: ['/node_modules/', '.mocha.test.js'],
// Jest by default uses a number of workers equal to number of CPU cores minus 1.
// Github Actions runners provide 2 cores and running with 2 workers is faster than 1.
...(process.env.CI && {maxWorkers: '100%'})
Expand Down

0 comments on commit de89324

Please sign in to comment.