-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
35 lines (35 loc) · 1.05 KB
/
jest.config.js
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
/* eslint-disable */
module.exports = {
collectCoverage: true,
coverageProvider: "v8",
transform: {
"^.+\\.ts$": "ts-jest",
"^.+\\.js$": "babel-jest",
"\\.(png|svg|jpg|jpeg)$": "<rootDir>/jest/imgTransform.js",
"\\.(scss)$": "<rootDir>/jest/cssTransform.js"
},
testRegex: "^.+\\.test\\.ts$",
testPathIgnorePatterns: ["/node_modules/", "/build/", "/dist/", "/publish/", "/coverage/", "/stats", "/src/components/sass-stats/"],
transformIgnorePatterns: ["/node_modules/?!(@open-wc).+js$"],
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
moduleNameMapper: {
"^@/(.*)$": "<rootDir>/src/$1",
"^@css/(.*)$": "<rootDir>/src/assets/styles/$1",
"^@img/(.*)$": "<rootDir>/src/assets/images/$1"
},
globals: {
"ts-jest": {
diagnostics: false,
tsConfig: {
target: "ES2016",
module: "esnext",
moduleResolution: "node",
allowJs: true,
strict: true,
esModuleInterop: true,
experimentalDecorators: true,
resolveJsonModule: true
}
}
}
};