[code coverage] Update jest config to collect more data (#83804)
* collect code coverage for more files in src/ * update config * update config according review * move collectCoverageFrom to preset Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
f79188aace
commit
312438ff9b
|
@ -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}',
|
||||
],
|
||||
};
|
||||
|
|
|
@ -39,17 +39,5 @@ export default {
|
|||
'<rootDir>/test/functional/services/remote',
|
||||
'<rootDir>/src/dev/code_coverage/ingest_coverage',
|
||||
],
|
||||
collectCoverageFrom: [
|
||||
'src/plugins/**/*.{ts,tsx}',
|
||||
'!src/plugins/**/{__test__,__snapshots__,__examples__,mocks,tests}/**/*',
|
||||
'!src/plugins/**/*.d.ts',
|
||||
'!src/plugins/**/test_helpers/**',
|
||||
'packages/kbn-ui-framework/src/components/**/*.js',
|
||||
'!packages/kbn-ui-framework/src/components/index.js',
|
||||
'!packages/kbn-ui-framework/src/components/**/*/index.js',
|
||||
'packages/kbn-ui-framework/src/services/**/*.js',
|
||||
'!packages/kbn-ui-framework/src/services/index.js',
|
||||
'!packages/kbn-ui-framework/src/services/**/*/index.js',
|
||||
],
|
||||
testRunner: 'jasmine2',
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue