-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.json
32 lines (32 loc) · 1.25 KB
/
jest.config.json
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
27
28
29
30
31
32
{
"testEnvironment": "jsdom",
"setupFiles": [
"<rootDir>/jest.setup.js"
],
"setupFilesAfterEnv": ["<rootDir>/jest.setup.after-env.js"],
"testPathIgnorePatterns": ["/node_modules/", ".history/"],
"moduleNameMapper": {
"^@root(.*)$": "<rootDir>/$1",
"^@/app(.*)$": "<rootDir>/src/app$1",
"^@/components(.*)$": "<rootDir>/src/components$1",
"^@/constants(.*)$": "<rootDir>/src/constants$1",
"^@/hooks(.*)$": "<rootDir>/src/hooks$1",
"^@/models(.*)$": "<rootDir>/src/models$1",
"^@/pages(.*)$": "<rootDir>/src/pages$1",
"^@/routes(.*)$": "<rootDir>/src/routes$1",
"^@/schemas(.*)$": "<rootDir>/src/schemas$1",
"^@/services(.*)$": "<rootDir>/src/services$1",
"^@/util(.*)$": "<rootDir>/src/util$1",
"^@/state(.*)$": "<rootDir>/src/state$1",
"^@/styles(.*)$": "<rootDir>/src/styles$1",
"\\.(css|less|scss|sass)$": "identity-obj-proxy"
},
"transform": {
"^.+\\.js$": "babel-jest",
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/fileTransformer.js"
},
"watchPlugins": [
"jest-watch-typeahead/filename",
"jest-watch-typeahead/testname"
]
}