-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
6 changed files
with
389 additions
and
42 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,3 +1,2 @@ | ||
lib | ||
jest.config.js | ||
jest-puppeteer.config.js |
This file was deleted.
Oops, something went wrong.
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,10 +1,20 @@ | ||
module.exports = { | ||
preset: 'jest-puppeteer', | ||
haste: { | ||
providesModuleNodeModules: ['.*'], | ||
}, | ||
testResultsProcessor: 'jest-junit', | ||
testMatch: ['<rootDir>/lib/**/*.test.js'], | ||
|
||
/** | ||
* Note the following config is required to support running jest as a CLI. | ||
* Jest doesn't support running tests in `node_modules` by default. | ||
* This is a problem as this CLI is installed within node_modules itself. | ||
* | ||
* Issue: https://github.com/facebook/jest/issues/2145 | ||
* This is fixed in Jest v.28, we can migrate to that once it is fully available. | ||
* Until then we need to stay on Jest v.25, as support was dropped in versions 26 and 27. | ||
*/ | ||
testPathIgnorePatterns: ['<rootDir>/node_modules/'], | ||
modulePathIgnorePatterns: ['<rootDir>/node_modules/'], | ||
testResultsProcessor: 'jest-junit', | ||
haste: { | ||
providesModuleNodeModules: ['.*'], | ||
}, | ||
} |
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
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
Oops, something went wrong.