Skip to content

Commit 8601a2e

Browse files
committed
Add all testable files to coverage report
Jest, by default, doesn't know what files COULD be tested which just meant that coverage reports would omit any untested file. This is ironic because that meant you could have 100% coverage by simply not testing anything.
1 parent b133bcd commit 8601a2e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ module.exports = {
44
tsconfig: 'tsconfig.dev.json',
55
},
66
},
7+
collectCoverageFrom: ["src/**/*.ts"],
78
preset: 'ts-jest',
89
testEnvironment: 'node',
910
testPathIgnorePatterns: ["<rootDir>/dist/"],

0 commit comments

Comments
 (0)