Skip to content

Commit dcc6fd0

Browse files
committed
remove unsupported cra jest config
1 parent ba2ed06 commit dcc6fd0

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

jest.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,8 @@ module.exports = {
22
rootDir: "src/tests",
33
testRegex: "/src/tests/.*test\\.tsx$",
44
setupFiles: ["<rootDir>/App.spec.js"],
5+
moduleNameMapper: {
6+
"^.+\\.(css|scss)$": "<rootDir>/__mocks__/CSSStub.config.js",
7+
"react-dotenv": "<rootDir>/__mocks__/react-dotenv.tsx",
8+
},
59
};

package.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,6 @@
7272
"eject": "react-scripts eject",
7373
"lint": "eslint . --fix"
7474
},
75-
"jest": {
76-
"testPathIgnorePatterns": [
77-
"<rootDir>/ignore/this/path/"
78-
]
79-
},
8075
"eslintConfig": {
8176
"extends": "react-app"
8277
},

0 commit comments

Comments
 (0)