Skip to content
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

Commit 10a5957

Browse files
authored
Merge pull request #406 from r3nya/patch-1
Ignore test coverage for definitions files
2 parents 24ebcd4 + 88f8aa1 commit 10a5957

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/utils/createJestConfig.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ module.exports = (resolve, rootDir, isEjecting) => {
2121
// TODO: I don't know if it's safe or not to just use / as path separator
2222
// in Jest configs. We need help from somebody with Windows to determine this.
2323
const config = {
24-
collectCoverageFrom: ['src/**/*.{js,jsx,ts,tsx}'],
24+
collectCoverageFrom: [
25+
'src/**/*.{js,jsx,ts,tsx}',
26+
'!**/*.d.ts'
27+
],
2528
setupFiles: [resolve('config/polyfills.js')],
2629
setupTestFrameworkScriptFile: setupTestsFile,
2730
testMatch: [

0 commit comments

Comments
 (0)