Skip to content

Commit

Permalink
test(jest): collect test coverage with strict global thresholds
Browse files Browse the repository at this point in the history
  • Loading branch information
niloysikdar committed Nov 16, 2023
1 parent 57f45ad commit 43e6a8d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ const config: JestConfigWithTsJest = {
clearMocks: true,
restoreMocks: true,
verbose: true,
collectCoverage: true,
coverageThreshold: {
global: {
statements: 100,
branches: 100,
functions: 100,
lines: 100,
},
},
testEnvironment: 'node',
setupFiles: ['./jest.setup.ts'],
prettierPath: '<rootDir>/node_modules/prettier',
Expand Down

0 comments on commit 43e6a8d

Please sign in to comment.