Skip to content

Commit

Permalink
Dev: Run tests on all CPU cores on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Mar 29, 2023
1 parent ab078ba commit 924d444
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@ module.exports = {
collectCoverageFrom: ['index.js', 'lib/**/*.js'],
moduleNameMapper: {
'^got-resume($|/.*)': '<rootDir>$1'
}
},
// 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%'})
};

0 comments on commit 924d444

Please sign in to comment.