-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
41 lines (41 loc) · 1.03 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
36
37
38
39
40
41
module.exports = {
coverageDirectory: "<rootDir>/coverage",
collectCoverageFrom: ["src/main/ts/**/*.{ts,tsx,js}"],
coverageReporters: ["lcovonly", "text"],
globals: {
"ts-jest": {
diagnostics: false,
},
},
moduleFileExtensions: ["ts", "tsx", "js"],
setupFilesAfterEnv: ["<rootDir>/conf/jest-setup.js"],
testEnvironment: "jsdom",
testPathIgnorePatterns: ["<rootDir>/config", "<rootDir>/node_modules", "<rootDir>/scripts"],
testRegex: "(/__tests__/.*|\\-test)\\.(ts|tsx)$",
transform: {
"^.+\\.(t|j)sx?$": [
"@swc/jest",
{
jsc: {
target: "es2018",
},
},
],
},
transformIgnorePatterns: ["/node_modules/(?!(d3-.+))/"],
reporters: [
"default",
[
"jest-junit",
{
outputDirectory: "build/test-results/test-jest",
outputName: "junit.xml",
ancestorSeparator: " > ",
suiteNameTemplate: "{filename}",
classNameTemplate: "{classname}",
titleTemplate: "{title}",
},
],
],
testTimeout: 30000,
};