Skip to content

Commit dc72c72

Browse files
committed
exclude 'tests' folder for coverage
1 parent aecd570 commit dc72c72

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/dev/jest/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default {
4040
],
4141
collectCoverageFrom: [
4242
'src/plugins/**/*.{ts,tsx}',
43-
'!src/plugins/**/{__test__,__snapshots__,__examples__,mocks}/**/*',
43+
'!src/plugins/**/{__test__,__snapshots__,__examples__,mocks,tests}/**/*',
4444
'!src/plugins/**/*.d.ts',
4545
'packages/kbn-ui-framework/src/components/**/*.js',
4646
'!packages/kbn-ui-framework/src/components/index.js',

x-pack/dev-tools/jest/create_jest_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export function createJestConfig({ kibanaDirectory, xPackKibanaDirectory }) {
3838
'legacy/plugins/**/*.{js,jsx,ts,tsx}',
3939
'legacy/server/**/*.{js,jsx,ts,tsx}',
4040
'plugins/**/*.{js,jsx,ts,tsx}',
41-
'!**/{__test__,__snapshots__,__examples__,integration_tests}/**',
41+
'!**/{__test__,__snapshots__,__examples__,integration_tests,tests}/**',
4242
'!**/*.test.{js,ts,tsx}',
4343
'!**/flot-charts/**',
4444
'!**/test/**',

0 commit comments

Comments
 (0)