Skip to content

Commit aaac716

Browse files
authored
Update config for Jest
1 parent 067b8fc commit aaac716

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)