-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.json
40 lines (40 loc) · 994 Bytes
/
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
{
"collectCoverageFrom": [
"**/src/**/*.(ts|js)",
"!**/*.d.ts"
],
"coverageDirectory": "<rootDir>/reports/coverage",
"globalSetup": "<rootDir>/config/tests/globalSetup.js",
"globalTeardown": "<rootDir>/config/tests/globalTeardown.js",
"globals": {
"ts-jest": {
"tsConfig": "tsconfig.json"
}
},
"moduleDirectories": [
"node_modules",
"./src"
],
"moduleFileExtensions": [
"ts",
"js",
"json"
],
"moduleNameMapper": {
"\\.(html|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|ogg|m4a|aac|oga|css|less|scss)": "<rootDir>/config/tests/fileMock.js",
"~/(.*)$": "<rootDir>/src/$1"
},
"rootDir": ".",
"roots": [
"<rootDir>/src"
],
"setupTestFrameworkScriptFile": "<rootDir>/config/tests/setupTests.js",
"snapshotSerializers": [
"enzyme-to-json/serializer"
],
"testRegex": "__tests__/.*\\.spec\\.[jt]s$",
"testURL": "http://localhost",
"transform": {
"^.+\\.ts$": "ts-jest"
}
}