-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathjest.config.ts
More file actions
24 lines (22 loc) · 642 Bytes
/
Copy pathjest.config.ts
File metadata and controls
24 lines (22 loc) · 642 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
/* eslint-disable no-restricted-exports */
import type { JestConfigWithTsJest } from "ts-jest";
const jestConfig: JestConfigWithTsJest = {
maxWorkers: "90%",
testEnvironment: "node",
transform: {
"^.+\\.tsx?$": ["ts-jest", {}],
},
moduleDirectories: ["node_modules", "src"],
cacheDirectory: "<rootDir>/jestCache",
collectCoverage: false,
collectCoverageFrom: ["src/**/*.{js,jsx,ts,tsx}"],
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
coverageReporters: ["text", "lcov"],
coverageThreshold: {
global: {
branches: 100,
},
},
};
// ts-prune-ignore-next
export default jestConfig;