Skip to content

Commit 7e9764c

Browse files
author
Sebastian Sebald
committed
Allow moduleNameMapper config override
1 parent 3d26394 commit 7e9764c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ module.exports = (resolve, rootDir, isEjecting) => {
7575
'coverageReporters',
7676
'coverageThreshold',
7777
'snapshotSerializers',
78+
'moduleNameMapper',
7879
];
7980
if (overrides) {
8081
supportedKeys.forEach(key => {

packages/react-scripts/template/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"compilerOptions": {
3+
"baseUrl": ".",
34
"outDir": "build/dist",
45
"module": "esnext",
56
"target": "es5",

0 commit comments

Comments
 (0)