Skip to content

Commit

Permalink
Exclude untestable files from coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
horvathmarton authored and imolorhe committed Jul 21, 2023
1 parent bc65ac1 commit 66fc070
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/altair-api/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,15 @@ module.exports = {
transform: {
'^.+\\.(t|j)s$': 'ts-jest',
},
collectCoverageFrom: ['src/**/*.(t|j)s'],
collectCoverageFrom: [
'src/**/*.(t|j)s',
'!src/**/mocks/**',
'!src/**/config.ts',
'!src/**/*.dto.ts',
'!src/**/*.input.ts',
'!src/**/*.module.ts',
'!src/**/*.strategy.ts',
],
coverageDirectory: '../coverage',
testEnvironment: 'node',
setupFilesAfterEnv: ['./custom-matchers.ts'],
Expand Down

0 comments on commit 66fc070

Please sign in to comment.