Skip to content

Commit

Permalink
Dev: Run ESLint in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Dec 19, 2023
1 parent b70bb26 commit 6081dde
Show file tree
Hide file tree
Showing 3 changed files with 1,048 additions and 163 deletions.
17 changes: 17 additions & 0 deletions jest-eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* --------------------
* native-type-of module
* Jest ESLint runner config
* ------------------*/

'use strict';

// Exports

module.exports = {
testEnvironment: 'node',
runner: 'jest-runner-eslint',
testMatch: ['<rootDir>/**/*.(js|cjs|mjs|jsx)'],
// 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%'})
};
Loading

0 comments on commit 6081dde

Please sign in to comment.