Skip to content

Commit

Permalink
move collectCoverageFrom to preset
Browse files Browse the repository at this point in the history
  • Loading branch information
dmlemeshko committed Nov 20, 2020
1 parent 9f9e712 commit 9e7d7f7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
10 changes: 10 additions & 0 deletions packages/kbn-test/jest-preset.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,14 @@ module.exports = {
'[/\\\\]node_modules(?![\\/\\\\]monaco-editor)[/\\\\].+\\.js$',
'packages/kbn-pm/dist/index.js',
],

// An array of regexp pattern strings that are matched against all source file paths, matched files to include/exclude for code coverage
collectCoverageFrom: [
'**/*.{js,mjs,jsx,ts,tsx}',
'!**/{__test__,__snapshots__,__examples__,mocks,tests,test_helpers,integration_tests,types}/**/*',
'!**/*mock*.ts',
'!**/*.test.ts',
'!**/*.d.ts',
'!**/index.{js,ts}',
],
};
8 changes: 0 additions & 8 deletions src/dev/jest/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,5 @@ export default {
'<rootDir>/test/functional/services/remote',
'<rootDir>/src/dev/code_coverage/ingest_coverage',
],
collectCoverageFrom: [
'**/*.{js,mjs,jsx,ts,tsx}',
'!**/{__test__,__snapshots__,__examples__,mocks,tests,test_helpers,integration_tests,types}/**/*',
'!**/*mock*.ts',
'!**/*.test.ts',
'!**/*.d.ts',
'!**/index.{js,ts}',
],
testRunner: 'jasmine2',
};

0 comments on commit 9e7d7f7

Please sign in to comment.