-
-
Notifications
You must be signed in to change notification settings - Fork 316
Expand file tree
/
Copy pathjest.config.cjs
More file actions
35 lines (35 loc) · 718 Bytes
/
jest.config.cjs
File metadata and controls
35 lines (35 loc) · 718 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
33
34
35
module.exports = {
globals: {
'ts-jest': {
isolatedModules: true,
},
},
testMatch: [
'**/test/**/*.spec.(js|ts)',
],
transform: {
'^.+\\.(ts|tsx|js|jsx)$': 'ts-jest',
},
collectCoverage: true,
coverageDirectory: './coverage',
coverageThreshold: {
global: {
branches: 98,
functions: 100,
lines: 100,
statements: 100,
},
},
collectCoverageFrom: [
'src/**/*.ts',
'!**/node_modules/**',
],
setupFilesAfterEnv: ['./test/setup.js'],
roots: [
'test/',
],
moduleDirectories: [
'node_modules',
__dirname,
],
};