-
-
Notifications
You must be signed in to change notification settings - Fork 667
Expand file tree
/
Copy pathjest.config.js
More file actions
23 lines (23 loc) · 747 Bytes
/
jest.config.js
File metadata and controls
23 lines (23 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module.exports = {
testEnvironment: "node",
coverageProvider: "v8",
collectCoverage: false,
collectCoverageFrom: ["packages/*/src/**/*.ts"],
coverageDirectory: ".jest_coverage",
coverageReporters: ["json"],
transform: {
"^.+\\.tsx?$": [
"ts-jest",
{
useESM: true,
tsconfig: "tsconfig.json",
},
],
},
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",
};