Skip to content

Commit

Permalink
[jest] Add coverage options
Browse files Browse the repository at this point in the history
  • Loading branch information
homoluctus committed Nov 25, 2019
1 parent 3f0be90 commit b6889bc
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@ module.exports = {
clearMocks: true,
moduleFileExtensions: ['js', 'ts'],
testEnvironment: 'node',
testMatch: ['**/*.test.ts'],
testMatch: ['**/__tests__/*.test.ts'],
testRunner: 'jest-circus/runner',
transform: {
'^.+\\.ts$': 'ts-jest'
},
verbose: true
verbose: true,
collectCoverage: true,
collectCoverageFrom: [
'**/src/*.ts',
'!**/node_modules/**'
]
}

0 comments on commit b6889bc

Please sign in to comment.