Skip to content

Commit

Permalink
Ignore test files from reported type errors (facebook#5608)
Browse files Browse the repository at this point in the history
* Ignore test files from reported type errors

* Ignore setup proxy & test files
  • Loading branch information
Timer authored and nate770 committed Oct 30, 2018
1 parent 63704ed commit 8268d96
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/react-scripts/config/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,13 @@ module.exports = {
noEmit: true,
jsx: 'preserve',
},
reportFiles: [
'**',
'!**/__tests__/**',
'!**/?(*.)(spec|test).*',
'!src/setupProxy.js',
'!src/setupTests.*',
],
watch: paths.appSrc,
silent: true,
formatter: typescriptFormatter,
Expand Down
7 changes: 7 additions & 0 deletions packages/react-scripts/config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,13 @@ module.exports = {
noEmit: true,
jsx: 'preserve',
},
reportFiles: [
'**',
'!**/__tests__/**',
'!**/?(*.)(spec|test).*',
'!src/setupProxy.js',
'!src/setupTests.*',
],
watch: paths.appSrc,
silent: true,
formatter: typescriptFormatter,
Expand Down

0 comments on commit 8268d96

Please sign in to comment.