-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.ts
More file actions
32 lines (30 loc) · 840 Bytes
/
jest.config.ts
File metadata and controls
32 lines (30 loc) · 840 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
32
import type { Config } from '@jest/types';
const config: Config.InitialOptions = {
maxWorkers: `80%`,
rootDir: `.`,
runner: `jest-runner`,
verbose: true,
preset: `ts-jest`,
globals: {
'ts-jest': {
tsconfig: `tsconfig.jest.json`,
},
},
collectCoverage: false,
collectCoverageFrom: [`./src/**/*.ts`],
coveragePathIgnorePatterns: [`node_modules`, `<rootDir>/src/entities/*`],
coverageThreshold: {
global: {
branches: 30,
functions: 30,
lines: 45,
statements: 45,
},
},
// setupFiles - we can for code to run before each test with this
// setupFilesEnv - I think this will run after every test
globalSetup: `<rootDir>/tests/global-setup.ts`,
globalTeardown: `<rootDir>/tests/global-teardown.ts`,
moduleDirectories: [`node_modules`],
};
export default config;