-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
26 lines (25 loc) · 860 Bytes
/
jest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// npx jest--watch
module.exports = {
roots: ["<rootDir>/src"],
moduleNameMapper: {
// "\\.(css|scss)$": "<rootDir>/__tests__/styleMock.js"
"^.+\\.(css|less|scss)$": "babel-jest"
},
testMatch: [
"**/__tests__/**/*.+(ts|tsx|js)",
// "**/?(*.)+(spec|test).+(ts|tsx|js)"
],
transform: {
// "^.+\\.(ts|tsx)$": "ts-jest",
// "^.+\\.jsx?$": "babel-jest",
"^.+\\.(ts|tsx)$": "<rootDir>/node_modules/babel-jest",
".+\\.(css|styl|less|sass|scss)$": "jest-transform-css"
},
setupFilesAfterEnv: [
// "@testing-library/react/cleanup-after-each",
// "@testing-library/jest-dom/extend-expect"
// "<rootDir>/jest.setup.js"
],
// testRegex: "((\\.|/)(test|spec))\\.tsx?$",
// moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"]
};