-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
27 lines (27 loc) · 806 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
27
module.exports = {
setupFilesAfterEnv: ["<rootDir>src/setupTests.js"],
moduleFileExtensions: ["js"],
transform: {
"^.+\\.js?$": "babel-jest",
".+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$": "jest-transform-stub",
},
moduleNameMapper: {
"^@/(.*)$": "<rootDir>/src/$1",
},
moduleDirectories: [
"node_modules",
"src",
],
// Ignore cypress tests
testPathIgnorePatterns: [
"node_modules",
"cypress",
],
moduleNameMapper: {
"IndexScripts(.*)$": "<rootDir>src/index/scripts/$1",
"IndexComponents(.*)$": "<rootDir>src/index/scripts/components/$1",
"IndexContainers(.*)$": "<rootDir>src/index/scripts/containers/$1",
"IndexStyles(.*)$": "<rootDir>src/index/styles/$1",
"Images(.*)$": "<rootDir>assets/images$1",
}
};