-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathjest.config.ts
40 lines (40 loc) · 989 Bytes
/
jest.config.ts
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
export default {
clearMocks: true,
collectCoverage: true,
coverageDirectory: "coverage",
coverageProvider: "v8",
coverageThreshold: {
global: {
branches: 100,
functions: 100,
lines: 100,
statements: 100,
},
},
coverageReporters: ["json", "text", "lcov", "clover", "html"],
maxWorkers: "80%",
moduleDirectories: ["node_modules"],
moduleFileExtensions: ["js", "ts"],
projects: [
"<rootDir>/packages/checker",
"<rootDir>/packages/creator",
"<rootDir>/packages/cleaner",
"<rootDir>/packages/modifier",
"<rootDir>/packages/helper",
],
preset: "ts-jest",
globals: {
"ts-jest": {
useESM: true,
},
},
moduleNameMapper: {
"^(\\.{1,2}/.*)\\.js$": "$1",
},
roots: ["<rootDir>"],
runner: "jest-runner",
testEnvironment: "jest-environment-node",
testMatch: ["**/__tests__/**/*.[jt]s?(x)", "**/?(*.)+(spec|test).[tj]s?(x)"],
testPathIgnorePatterns: ["/node_modules/"],
verbose: true,
};