Skip to content

Commit 3403f05

Browse files
authored
Ignore test files from reported type errors (#5608)
* Ignore test files from reported type errors * Ignore setup proxy & test files
1 parent 9747480 commit 3403f05

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
@@ -432,6 +432,13 @@ module.exports = {
432432
noEmit: true,
433433
jsx: 'preserve',
434434
},
435+
reportFiles: [
436+
'**',
437+
'!**/__tests__/**',
438+
'!**/?(*.)(spec|test).*',
439+
'!src/setupProxy.js',
440+
'!src/setupTests.*',
441+
],
435442
watch: paths.appSrc,
436443
silent: true,
437444
formatter: typescriptFormatter,

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

+7
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,13 @@ module.exports = {
552552
noEmit: true,
553553
jsx: 'preserve',
554554
},
555+
reportFiles: [
556+
'**',
557+
'!**/__tests__/**',
558+
'!**/?(*.)(spec|test).*',
559+
'!src/setupProxy.js',
560+
'!src/setupTests.*',
561+
],
555562
watch: paths.appSrc,
556563
silent: true,
557564
formatter: typescriptFormatter,

0 commit comments

Comments
 (0)