-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: major paragon version upgrade (#419)
* build: major paragon version upgrade * refactor: move jest configs to seperate jest-config file
- Loading branch information
1 parent
401e601
commit 24874aa
Showing
4 changed files
with
770 additions
and
396 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,7 @@ | ||
const path = require('path'); | ||
|
||
module.exports = { | ||
process(src, filename) { | ||
return `module.exports = ${JSON.stringify(path.basename(filename))};`; | ||
}, | ||
}; |
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,20 @@ | ||
module.exports = { | ||
testEnvironment: 'jest-environment-jsdom-global', | ||
testURL: 'http://localhost/', | ||
setupFiles: [ | ||
'./src/setupTest.js', | ||
], | ||
transformIgnorePatterns: [ | ||
'node_modules/(?!@edx)', | ||
], | ||
collectCoverage: true, | ||
collectCoverageFrom: [ | ||
'src/**/**.{js,jsx}', | ||
'!src/**/*.stories.jsx', | ||
'!src/setupTest.js', | ||
], | ||
moduleNameMapper: { | ||
'.+\\.(css|styl|less|sass|scss)$': 'identity-obj-proxy', | ||
'.+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/fileTransformer.js', | ||
}, | ||
}; |
Oops, something went wrong.