Skip to content

Commit

Permalink
exclude 'tests' folder for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
dmlemeshko committed Apr 29, 2020
1 parent aecd570 commit dc72c72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dev/jest/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default {
],
collectCoverageFrom: [
'src/plugins/**/*.{ts,tsx}',
'!src/plugins/**/{__test__,__snapshots__,__examples__,mocks}/**/*',
'!src/plugins/**/{__test__,__snapshots__,__examples__,mocks,tests}/**/*',
'!src/plugins/**/*.d.ts',
'packages/kbn-ui-framework/src/components/**/*.js',
'!packages/kbn-ui-framework/src/components/index.js',
Expand Down
2 changes: 1 addition & 1 deletion x-pack/dev-tools/jest/create_jest_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function createJestConfig({ kibanaDirectory, xPackKibanaDirectory }) {
'legacy/plugins/**/*.{js,jsx,ts,tsx}',
'legacy/server/**/*.{js,jsx,ts,tsx}',
'plugins/**/*.{js,jsx,ts,tsx}',
'!**/{__test__,__snapshots__,__examples__,integration_tests}/**',
'!**/{__test__,__snapshots__,__examples__,integration_tests,tests}/**',
'!**/*.test.{js,ts,tsx}',
'!**/flot-charts/**',
'!**/test/**',
Expand Down

0 comments on commit dc72c72

Please sign in to comment.