[jest] update config files to get coverage per plugin (#111299)

* [jest] update config files to get coverage per plugin

* [docs] add details about plugin coverage collection

* fix path for newsfeed jest config

* fix lint error

* update documentation

* fix lint errors again

* update doc

* fix another lint error

* Update src/plugins/telemetry_management_section/jest.config.js

Co-authored-by: Luke Elmers <lukeelmers@gmail.com>

* Update src/plugins/telemetry_management_section/jest.config.js

Co-authored-by: Luke Elmers <lukeelmers@gmail.com>

* [kibana_legacy] fix path

Co-authored-by: Luke Elmers <lukeelmers@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Dzmitry Lemechko 2021-09-09 08:14:56 +02:00 committed by GitHub
parent c4c653606a
commit b324ca3115
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
128 changed files with 527 additions and 2 deletions

View file

@ -9,4 +9,9 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../..',
roots: ['<rootDir>/x-pack/plugins/data_visualizer'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/x-pack/plugins/data_visualizer',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/x-pack/plugins/data_visualizer/{common,public,server}/**/*.{js,ts,tsx}',
],
};