Skip to content

Commit 8268d96

Browse files
Timernate770
authored andcommitted
Ignore test files from reported type errors (facebook#5608)
* Ignore test files from reported type errors * Ignore setup proxy & test files
1 parent 63704ed commit 8268d96

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

packages/react-scripts/config/webpack.config.dev.js

+7
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,13 @@ module.exports = {
426426
noEmit: true,
427427
jsx: 'preserve',
428428
},
429+
reportFiles: [
430+
'**',
431+
'!**/__tests__/**',
432+
'!**/?(*.)(spec|test).*',
433+
'!src/setupProxy.js',
434+
'!src/setupTests.*',
435+
],
429436
watch: paths.appSrc,
430437
silent: true,
431438
formatter: typescriptFormatter,

packages/react-scripts/config/webpack.config.prod.js

+7
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,13 @@ module.exports = {
546546
noEmit: true,
547547
jsx: 'preserve',
548548
},
549+
reportFiles: [
550+
'**',
551+
'!**/__tests__/**',
552+
'!**/?(*.)(spec|test).*',
553+
'!src/setupProxy.js',
554+
'!src/setupTests.*',
555+
],
549556
watch: paths.appSrc,
550557
silent: true,
551558
formatter: typescriptFormatter,

0 commit comments

Comments
 (0)