mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[code coverage] exclude folders: test_helpers, tests_bundle (#70199)
This commit is contained in:
parent
470397075f
commit
8e524477bc
2 changed files with 3 additions and 0 deletions
|
@ -43,6 +43,7 @@ export default {
|
|||
'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',
|
||||
|
@ -51,6 +52,7 @@ export default {
|
|||
'!packages/kbn-ui-framework/src/services/**/*/index.js',
|
||||
'src/legacy/core_plugins/**/*.{js,jsx,ts,tsx}',
|
||||
'!src/legacy/core_plugins/**/{__test__,__snapshots__}/**/*',
|
||||
'!src/legacy/core_plugins/tests_bundle/**',
|
||||
],
|
||||
moduleNameMapper: {
|
||||
'@elastic/eui$': '<rootDir>/node_modules/@elastic/eui/test-env',
|
||||
|
|
|
@ -44,6 +44,7 @@ export function createJestConfig({ kibanaDirectory, rootDir, xPackKibanaDirector
|
|||
'!**/mocks/**',
|
||||
'!**/plugins/apm/e2e/**',
|
||||
'!**/plugins/siem/cypress/**',
|
||||
'!**/plugins/**/test_helpers/**',
|
||||
],
|
||||
coveragePathIgnorePatterns: ['.*\\.d\\.ts'],
|
||||
coverageDirectory: `${kibanaDirectory}/target/kibana-coverage/jest`,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue