-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathjest.config.json
40 lines (40 loc) · 1.03 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
33
34
35
36
37
38
39
40
{
"testEnvironment": "jsdom",
"collectCoverageFrom": [
"app/*.{jsx,tsx}"
],
"coverageReporters": [
"lcov",
"text"
],
"setupFiles": [
"<rootDir>/tests/config/polyfills.js",
"<rootDir>/tests/config/enzyme.js"
],
"testMatch": [
"<rootDir>/tests/**/?(*.)(spec|test).tsx",
"<rootDir>/app/templates/**/?(*.)(spec|test).tsx"
],
"testResultsProcessor": "./node_modules/jest-nunit-reporter",
"testURL": "http://localhost",
"transform": {
"^.+\\.tsx?$": "<rootDir>/tests/config/typescriptTransform.js",
".+\\.(css|less||png||jpg)$": "./tests/config/styleMock.js"
},
"transformIgnorePatterns": [
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx|ts|tsx|less|css)$"
],
"moduleFileExtensions": [
"ts",
"js",
"tsx",
"jsx",
"json",
"node"
],
"globals": {
"ts-jest": {
"tsConfigFile": "tsconfig.json"
}
}
}