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:
Mike Chelen
2019-04-12 17:47:58 -04:00
committed by GitHub
parent 00bd225da8
commit 2ce9e5a75e
+3
View File
@@ -55,6 +55,9 @@
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"collectCoverageFrom": [
"**/*.(t|j)s"
],
"coverageDirectory": "../coverage",
"testEnvironment": "node"
}