include untested files in coverage report
jest coverage report ignores untested files by default, which results in incorrect coverage summary when some files lack tests. see also: https://jestjs.io/docs/en/configuration#collectcoveragefrom-array https://github.com/facebook/jest/issues/1211
This commit is contained in:
parent
00bd225da8
commit
2ce9e5a75e
|
|
@ -55,6 +55,9 @@
|
|||
"transform": {
|
||||
"^.+\\.(t|j)s$": "ts-jest"
|
||||
},
|
||||
"collectCoverageFrom": [
|
||||
"**/*.(t|j)s"
|
||||
],
|
||||
"coverageDirectory": "../coverage",
|
||||
"testEnvironment": "node"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue