Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions dev_docs/key_concepts/anatomy_of_a_plugin.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ plugins/
plugin.ts
common
index.ts
jest.config.js
```

### kibana.json
Expand Down Expand Up @@ -209,6 +210,29 @@ considerations related to how plugins integrate with core APIs and APIs exposed

`common/index.ts` is the entry-point into code that can be used both server-side or client side.

### jest.config.js

If you are adding unit tests (which we recommend), you will need to add a `jest.config.js` file. Here is an example file that you would use if adding a plugin into the `examples` directory.

```js
module.exports = {
// Default Jest settings, defined in kbn-test package
preset: '@kbn/test',
// The root of the directory containing package.json
rootDir: '../../..',
// The directory which Jest should use to search for files in
roots: ['<rootDir>/src/plugins/demo'],
// The directory where Jest should output plugin coverage details, e.g. html report
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/plugins/demo',
// A list of reporter names that Jest uses when writing coverage reports, default: ["json"]
// "text" is available in console and is good for quick check
// "html" helps to dig into specific files and fix coverage
coverageReporters: ['text', 'html'],
// An array of regexp pattern strings that matched files to include/exclude for code coverage
collectCoverageFrom: ['<rootDir>/src/plugins/demo/{common,public,server}/**/*.{ts,tsx}'],
};
```

## How plugin's interact with each other, and Core

The lifecycle-specific contracts exposed by core services are always passed as the first argument to the equivalent lifecycle function in a plugin.
Expand Down
11 changes: 11 additions & 0 deletions dev_docs/tutorials/testing_plugins.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -928,6 +928,17 @@ describe('Case migrations v7.7.0 -> v7.8.0', () => {
});
```

You can generate code coverage report for a single plugin.

```bash
yarn jest --coverage --config src/plugins/console/jest.config.js
```

Html report should be available in `target/kibana-coverage/jest/src/plugins/console` path

We run code coverage daily on CI and ["Kibana Stats cluster"](https://kibana-stats.elastic.dev/s/code-coverage/app/home)
can be used to view statistics. The report combines code coverage for all jest tests within Kibana repository.

#### Integration testing
With more complicated migrations, the behavior of the migration may be dependent on values from other plugins which may
be difficult or even impossible to test with unit tests. You need to actually bootstrap Kibana, load the plugins, and
Expand Down
8 changes: 8 additions & 0 deletions docs/developer/contributing/development-tests.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ kibana/src/plugins/dashboard/server$ yarn test:jest --coverage
yarn jest --coverage --verbose --config /home/tyler/elastic/kibana/src/plugins/dashboard/jest.config.js server
----

You can generate code coverage report for a single plugin.

[source,bash]
----
yarn jest --coverage --config src/plugins/console/jest.config.js
----

Html report is available in target/kibana-coverage/jest/path/to/plugin

[discrete]
=== Running browser automation tests
Expand Down
3 changes: 3 additions & 0 deletions packages/kbn-ui-framework/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ You can run `node scripts/jest --watch` to watch for changes and run the tests a
You can run `node scripts/jest --coverage` to generate a code coverage report to see how
fully-tested the code is.

You can run `node scripts/jest --config path/to/plugin/jest.config.js --coverage` to generate
a code coverage report for a single plugin.

See the documentation in [`scripts/jest.js`](../scripts/jest.js) for more options.

## Creating components
Expand Down
3 changes: 3 additions & 0 deletions src/plugins/advanced_settings/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../..',
roots: ['<rootDir>/src/plugins/advanced_settings'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/plugins/advanced_settings',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/plugins/advanced_settings/{public,server}/**/*.{ts,tsx}'],
};
3 changes: 3 additions & 0 deletions src/plugins/bfetch/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../..',
roots: ['<rootDir>/src/plugins/bfetch'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/plugins/bfetch',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/plugins/bfetch/{common,public,server}/**/*.{ts,tsx}'],
};
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,10 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../../../',
roots: ['<rootDir>/src/plugins/chart_expressions/expression_tagcloud'],
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/src/plugins/chart_expressions/expression_tagcloud',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/src/plugins/chart_expressions/expression_tagcloud/{common,public,server}/**/*.{ts,tsx}',
],
};
3 changes: 3 additions & 0 deletions src/plugins/charts/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../..',
roots: ['<rootDir>/src/plugins/charts'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/plugins/charts',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/plugins/charts/{common,public,server}/**/*.{ts,tsx}'],
};
3 changes: 3 additions & 0 deletions src/plugins/console/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@ module.exports = {
rootDir: '../../..',
roots: ['<rootDir>/src/plugins/console'],
testRunner: 'jasmine2',
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/plugins/console',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/plugins/console/{common,public,server}/**/*.{js,ts,tsx}'],
};
3 changes: 3 additions & 0 deletions src/plugins/dashboard/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@ module.exports = {
rootDir: '../../..',
roots: ['<rootDir>/src/plugins/dashboard'],
testRunner: 'jasmine2',
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/plugins/dashboard',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/plugins/dashboard/{common,public,server}/**/*.{ts,tsx}'],
};
3 changes: 3 additions & 0 deletions src/plugins/data/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@ module.exports = {
rootDir: '../../..',
roots: ['<rootDir>/src/plugins/data'],
testRunner: 'jasmine2',
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/plugins/data',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/plugins/data/{common,public,server}/**/*.{ts,tsx}'],
};
3 changes: 3 additions & 0 deletions src/plugins/discover/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@ module.exports = {
rootDir: '../../..',
roots: ['<rootDir>/src/plugins/discover'],
testRunner: 'jasmine2',
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/plugins/discover',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/plugins/discover/{common,public,server}/**/*.{js,ts,tsx}'],
};
3 changes: 3 additions & 0 deletions src/plugins/embeddable/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@ module.exports = {
rootDir: '../../..',
roots: ['<rootDir>/src/plugins/embeddable'],
testRunner: 'jasmine2',
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/plugins/embeddable',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/plugins/embeddable/{common,public,server}/**/*.{ts,tsx}'],
};
5 changes: 5 additions & 0 deletions src/plugins/es_ui_shared/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,9 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../..',
roots: ['<rootDir>/src/plugins/es_ui_shared'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/plugins/es_ui_shared',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/src/plugins/es_ui_shared/{__packages_do_not_import__,common,public,server,static}/**/*.{ts,tsx}',
],
};
3 changes: 3 additions & 0 deletions src/plugins/expression_error/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../..',
roots: ['<rootDir>/src/plugins/expression_error'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/plugins/expression_error',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/plugins/expression_error/{common,public}/**/*.{ts,tsx}'],
};
5 changes: 5 additions & 0 deletions src/plugins/expression_image/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,9 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../..',
roots: ['<rootDir>/src/plugins/expression_image'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/plugins/expression_image',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/src/plugins/expression_image/{common,public,server}/**/*.{ts,tsx}',
],
};
5 changes: 5 additions & 0 deletions src/plugins/expression_metric/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,9 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../..',
roots: ['<rootDir>/src/plugins/expression_metric'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/plugins/expression_metric',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/src/plugins/expression_metric/{common,public,server}/**/*.{ts,tsx}',
],
};
5 changes: 5 additions & 0 deletions src/plugins/expression_repeat_image/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,9 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../..',
roots: ['<rootDir>/src/plugins/expression_repeat_image'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/plugins/expression_repeat_image',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/src/plugins/expression_repeat_image/{common,public,server}/**/*.{ts,tsx}',
],
};
5 changes: 5 additions & 0 deletions src/plugins/expression_reveal_image/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,9 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../..',
roots: ['<rootDir>/src/plugins/expression_reveal_image'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/plugins/expression_reveal_image',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/src/plugins/expression_reveal_image/{common,public,server}/**/*.{ts,tsx}',
],
};
5 changes: 5 additions & 0 deletions src/plugins/expression_shape/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,9 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../..',
roots: ['<rootDir>/src/plugins/expression_shape'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/plugins/expression_shape',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/src/plugins/expression_shape/{common,public,server}/**/*.{ts,tsx}',
],
};
3 changes: 3 additions & 0 deletions src/plugins/expressions/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../..',
roots: ['<rootDir>/src/plugins/expressions'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/plugins/expressions',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/plugins/expressions/{common,public,server}/**/*.{ts,tsx}'],
};
3 changes: 3 additions & 0 deletions src/plugins/field_formats/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../..',
roots: ['<rootDir>/src/plugins/field_formats'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/plugins/field_formats',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/plugins/field_formats/{common,public,server}/**/*.{ts,tsx}'],
};
3 changes: 3 additions & 0 deletions src/plugins/home/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../..',
roots: ['<rootDir>/src/plugins/home'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/plugins/home',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/plugins/home/{common,public,server}/**/*.{js,ts,tsx}'],
};
3 changes: 3 additions & 0 deletions src/plugins/index_pattern_editor/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../..',
roots: ['<rootDir>/src/plugins/index_pattern_editor'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/plugins/index_pattern_editor',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/plugins/index_pattern_editor/public/**/*.{ts,tsx}'],
};
5 changes: 5 additions & 0 deletions src/plugins/index_pattern_field_editor/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,9 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../..',
roots: ['<rootDir>/src/plugins/index_pattern_field_editor'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/plugins/index_pattern_field_editor',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/src/plugins/index_pattern_field_editor/{common,public,server}/**/*.{ts,tsx}',
],
};
5 changes: 5 additions & 0 deletions src/plugins/index_pattern_management/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,9 @@ module.exports = {
rootDir: '../../..',
roots: ['<rootDir>/src/plugins/index_pattern_management'],
testRunner: 'jasmine2',
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/plugins/index_pattern_management',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/src/plugins/index_pattern_management/{public,server}/**/*.{ts,tsx}',
],
};
3 changes: 3 additions & 0 deletions src/plugins/input_control_vis/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../..',
roots: ['<rootDir>/src/plugins/input_control_vis'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/plugins/input_control_vis',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/plugins/input_control_vis/public/**/*.{ts,tsx}'],
};
3 changes: 3 additions & 0 deletions src/plugins/inspector/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../..',
roots: ['<rootDir>/src/plugins/inspector'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/plugins/inspector',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/plugins/inspector/{common,public}/**/*.{ts,tsx}'],
};
3 changes: 3 additions & 0 deletions src/plugins/kibana_legacy/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../..',
roots: ['<rootDir>/src/plugins/kibana_legacy'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/plugins/kibana_legacy',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/plugins/kibana_legacy/public/**/*.{js,ts,tsx}'],
};
3 changes: 3 additions & 0 deletions src/plugins/kibana_overview/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../..',
roots: ['<rootDir>/src/plugins/kibana_overview'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/plugins/kibana_overview',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/plugins/kibana_overview/{common,public}/**/*.{js,ts,tsx}'],
};
3 changes: 3 additions & 0 deletions src/plugins/kibana_react/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../..',
roots: ['<rootDir>/src/plugins/kibana_react'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/plugins/kibana_react',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/plugins/kibana_react/{common,public}/**/*.{ts,tsx}'],
};
5 changes: 5 additions & 0 deletions src/plugins/kibana_usage_collection/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,9 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../..',
roots: ['<rootDir>/src/plugins/kibana_usage_collection'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/plugins/kibana_usage_collection',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/src/plugins/kibana_usage_collection/{common,server}/**/*.{ts,tsx}',
],
};
5 changes: 5 additions & 0 deletions src/plugins/kibana_utils/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,9 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../..',
roots: ['<rootDir>/src/plugins/kibana_utils'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/plugins/kibana_utils',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/src/plugins/kibana_utils/{common,demos,public,server}/**/*.{ts,tsx}',
],
};
3 changes: 3 additions & 0 deletions src/plugins/legacy_export/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../..',
roots: ['<rootDir>/src/plugins/legacy_export'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/plugins/legacy_export',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/plugins/interactive_setup/public/**/*.{ts,tsx}'],
};
3 changes: 3 additions & 0 deletions src/plugins/management/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../..',
roots: ['<rootDir>/src/plugins/management'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/plugins/management',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/plugins/management/{common,public,server}/**/*.{ts,tsx}'],
};
3 changes: 3 additions & 0 deletions src/plugins/maps_ems/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../..',
roots: ['<rootDir>/src/plugins/maps_ems'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/plugins/maps_ems',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/plugins/maps_ems/{common,public,server}/**/*.{ts,tsx}'],
};
3 changes: 3 additions & 0 deletions src/plugins/navigation/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../..',
roots: ['<rootDir>/src/plugins/navigation'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/plugins/navigation',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/plugins/navigation/public/**/*.{ts,tsx}'],
};
3 changes: 3 additions & 0 deletions src/plugins/newsfeed/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../..',
roots: ['<rootDir>/src/plugins/newsfeed'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/plugins/newsfeed',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/plugins/newsfeed/{common,public,server}/**/*.{ts,tsx}'],
};
5 changes: 5 additions & 0 deletions src/plugins/presentation_util/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,9 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../..',
roots: ['<rootDir>/src/plugins/presentation_util'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/plugins/presentation_util',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/src/plugins/presentation_util/{common,public,server}/**/*.{ts,tsx}',
],
};
3 changes: 3 additions & 0 deletions src/plugins/saved_objects/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../..',
roots: ['<rootDir>/src/plugins/saved_objects'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/plugins/saved_objects',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/plugins/saved_objects/{common,public,server}/**/*.{ts,tsx}'],
};
Loading