Skip to content

Commit 43e6a8d

Browse files
committed
test(jest): collect test coverage with strict global thresholds
1 parent 57f45ad commit 43e6a8d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

jest.config.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ const config: JestConfigWithTsJest = {
55
clearMocks: true,
66
restoreMocks: true,
77
verbose: true,
8+
collectCoverage: true,
9+
coverageThreshold: {
10+
global: {
11+
statements: 100,
12+
branches: 100,
13+
functions: 100,
14+
lines: 100,
15+
},
16+
},
817
testEnvironment: 'node',
918
setupFiles: ['./jest.setup.ts'],
1019
prettierPath: '<rootDir>/node_modules/prettier',

0 commit comments

Comments
 (0)