exclude tsx test and mock files from test coverage (#109203)

This commit is contained in:
Mikhail Shustov 2021-08-19 17:26:24 +03:00 committed by GitHub
parent e88d77b045
commit 76eafd8803
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -104,10 +104,10 @@ module.exports = {
collectCoverageFrom: [
'**/*.{js,mjs,jsx,ts,tsx}',
'!**/{__test__,__snapshots__,__examples__,*mock*,tests,test_helpers,integration_tests,types}/**/*',
'!**/*mock*.ts',
'!**/*.test.ts',
'!**/*mock*.{ts,tsx}',
'!**/*.test.{ts,tsx}',
'!**/*.d.ts',
'!**/index.{js,ts}',
'!**/index.{js,ts,tsx}',
],
// A custom resolver to preserve symlinks by default