-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
da4eedb
commit 23edba9
Showing
6 changed files
with
5,573 additions
and
2,051 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* -------------------- | ||
* yauzl-promise 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%'}) | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* -------------------- | ||
* yauzl-promise module | ||
* Jest config | ||
* ------------------*/ | ||
|
||
'use strict'; | ||
|
||
// Exports | ||
|
||
module.exports = { | ||
testEnvironment: 'node', | ||
coverageDirectory: 'coverage', | ||
collectCoverageFrom: ['index.js', 'lib/**/*.js'], | ||
setupFilesAfterEnv: ['jest-extended/all'], | ||
// 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%'}) | ||
}; |
Oops, something went wrong.