-
Notifications
You must be signed in to change notification settings - Fork 2
/
jest.config.json
55 lines (55 loc) · 1.02 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
"displayName": {
"name": "Vue-OOP",
"color": "blue"
},
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"transform": {
"^.+\\.jsx?$": "babel-jest",
"^.+\\.tsx?$": "ts-jest"
},
"transformIgnorePatterns": [
"node_modules"
],
"moduleNameMapper": {
"^@/(.*)$": "<rootDir>/src/$1"
},
"testMatch": [
"**/test/unit/**/*.spec.(js|jsx|ts|tsx)"
],
"testURL": "http://localhost/",
"globals": {
"ts-jest": {
"babelConfig": true
}
},
"collectCoverage": true,
"coverageReporters": [
"lcov",
"html"
],
"collectCoverageFrom": [
"src/**/*.{js,ts}"
],
"coverageThreshold": {
"global": {
"statements": 0,
"branches": 0,
"functions": 0,
"lines": 0
}
},
"coverageDirectory": "<rootDir>/test/unit/coverage/",
"coveragePathIgnorePatterns": [
"<rootDir>/node_modules"
],
"cacheDirectory": "<rootDir>/test/unit/cache/",
"preset": "ts-jest/presets/js-with-babel",
"bail": true,
"notify": true,
"verbose": true
}