-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.json
27 lines (27 loc) · 1.22 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
{
"moduleFileExtensions": ["js", "json", "jsx", "ts", "tsx", "node", "less", "d.ts"],
"moduleNameMapper": {
"\\.(css|jpg|png|svg|less)$": "<rootDir>/node_modules/jest-css-modules",
"nav-(.*)-style": "<rootDir>/node_modules/jest-css-modules",
"@navikt/ds-css": "<rootDir>/node_modules/jest-css-modules",
"\\.\\/userContent": "<rootDir>/node_modules/jest-css-modules",
"\\.\\/systemsStyles": "<rootDir>/node_modules/jest-css-modules",
"\\.\\/header": "<rootDir>/node_modules/jest-css-modules",
"^app/(.*)": "<rootDir>/src/app/$1",
"uuid": "<rootDir>/node_modules/uuid"
},
"setupFiles": ["<rootDir>/testSetup.js"],
"testPathIgnorePatterns": ["/node_modules/", "/dist/"],
"testEnvironment": "jest-environment-jsdom",
"testRegex": "(<rootDir>/test/.*|(\\.|/)(spec))\\.tsx?$",
"transform": {
"^.+\\.[t|j]sx?$": "babel-jest"
},
"transformIgnorePatterns": ["<rootDir>.*(node_modules)(?!.*nav.*).*$"],
"unmockedModulePathPatterns": [
"<rootDir>/node_modules/react",
"<rootDir>/node_modules/react-router",
"<rootDir>/node_modules/react-router-dom"
],
"setupFilesAfterEnv": ["<rootDir>/src/test/testConfig.js"]
}