-
-
Notifications
You must be signed in to change notification settings - Fork 680
Expand file tree
/
Copy pathjest.config.js
More file actions
31 lines (31 loc) · 888 Bytes
/
Copy pathjest.config.js
File metadata and controls
31 lines (31 loc) · 888 Bytes
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
module.exports = {
testEnvironment: "node",
coverageProvider: "v8",
collectCoverage: false,
collectCoverageFrom: ["packages/*/src/**/*.ts"],
coverageDirectory: ".jest_coverage",
coverageReporters: ["json"],
transform: {
"^.+\\.tsx?$": [
"@swc/jest",
{
jsc: {
parser: {
syntax: "typescript",
tsx: true,
},
target: "es2022",
},
module: {
type: "es6",
},
},
],
},
testRegex: ["/test/.*\\.(test.js|test.cjs|test.mjs|test.ts|test.cts|test.mts)$"],
moduleFileExtensions: ["ts", "cts", "mts", "js", "cjs", "mjs", "json"],
snapshotResolver: "<rootDir>/scripts/snapshot-resolver.js",
setupFilesAfterEnv: ["<rootDir>/scripts/setup-test.js"],
globalTeardown: "<rootDir>/scripts/cleanup-test.js",
globalSetup: "<rootDir>/scripts/global-setup.js",
};