Skip to content

Commit

Permalink
Ignore test files from reported type errors (#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 committed Oct 28, 2018
1 parent 9747480 commit 3403f05
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
Expand Up @@ -432,6 +432,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
Expand Up @@ -552,6 +552,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 3403f05

Please sign in to comment.