Skip to content
This repository was archived by the owner on Feb 3, 2020. It is now read-only.

Commit 3b81117

Browse files
Valerii Gusevvalgussev
Valerii Gusev
authored andcommitted
Add moduleNameMapper to supported keys
Add moduleNameMapper to supported keys for overriding in createJestConfig.js in order to mock worker.js files to successfully run through Jest
1 parent 9309e23 commit 3b81117

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/react-scripts/scripts/utils/createJestConfig.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ module.exports = (resolve, rootDir, isEjecting) => {
6262
'coverageReporters',
6363
'coverageThreshold',
6464
'snapshotSerializers',
65+
'moduleNameMapper',
6566
];
6667
if (overrides) {
6768
supportedKeys.forEach(key => {

0 commit comments

Comments
 (0)