-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest-preset.json
53 lines (53 loc) · 1.15 KB
/
jest-preset.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
{
"collectCoverage": true,
"coverageDirectory": "<rootDir>/../temp/test",
"collectCoverageFrom": [
"<rootDir>/**/*.{ts,tsx}",
"!<rootDir>/**/*.scss.*",
"!<rootDir>/**/webparts/**/*.ts",
"!<rootDir>/loc/**/*.*"
],
"coverageReporters": [
"json",
"lcov",
"text-summary"
],
"globals": {
"ts-jest": {
"diagnostics": {
"ignoreCodes": "TS151001"
},
"tsConfig": "node_modules/@voitanos/jest-preset-spfx/tsconfig.ts-jest.json"
}
},
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"json"
],
"moduleNameMapper": {
"\\.(css|scss)$": "identity-obj-proxy",
"^resx-strings/en-us.json": "<rootDir>/node_modules/@microsoft/sp-core-library/lib/resx-strings/en-us.json"
},
"reporters": [
"default",
[
"jest-junit",
{
"outputDirectory": "temp/test",
"outputName": "junit.xml"
}
]
],
"testMatch": [
"**/src/**/*.(spec|test).+(ts|js)?(x)",
"**/__tests__/**/*.(spec|test).+(ts|js)?(x)"
],
"testEnvironmentOptions": {
"url": "http://www.something.com/test.html"
},
"transform": {
"^.+\\.(ts|tsx)$": "ts-jest"
}
}