Skip to content

Commit d992a5e

Browse files
committed
Add jest in craco.config.js
1 parent 9d397cd commit d992a5e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

craco.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,13 @@ module.exports = function({ env, paths }) {
1313
environment: path.join(__dirname, 'src', 'environments', process.env.CLIENT_ENV),
1414
},
1515
},
16+
jest: {
17+
configure: {
18+
modulePathIgnorePatterns: ['<rootDir>/src/environments'],
19+
moduleNameMapper: {
20+
environment: '<rootDir>/src/environments/test',
21+
},
22+
},
23+
},
1624
};
1725
};

0 commit comments

Comments
 (0)