From 8b482c7c46d6aa2b38fa705c85182e1b33503463 Mon Sep 17 00:00:00 2001 From: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Date: Thu, 5 Dec 2024 16:10:31 +0000 Subject: [PATCH] [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix' --- .eslintrc.js | 4 +++- src/dev/storybook/aliases.ts | 9 ++++++--- .../src/plugins/chart_expressions/common/jest.config.js | 4 +++- .../plugins/private/event_annotation/jest.config.js | 3 ++- .../private/event_annotation_listing/jest.config.js | 3 ++- .../plugins/private/url_forwarding/jest.config.js | 7 +++++-- .../plugins/private/url_forwarding/public/index.ts | 1 - .../plugins/private/vis_default_editor/jest.config.js | 7 +++++-- .../plugins/private/vis_types/gauge/jest.config.js | 3 ++- .../plugins/private/vis_types/heatmap/jest.config.js | 3 ++- .../plugins/private/vis_types/metric/jest.config.js | 7 +++++-- .../plugins/private/vis_types/pie/jest.config.js | 7 +++++-- .../plugins/private/vis_types/table/jest.config.js | 3 ++- .../plugins/private/vis_types/tagcloud/jest.config.js | 7 +++++-- .../plugins/private/vis_types/timelion/jest.config.js | 3 ++- .../plugins/private/vis_types/vega/jest.config.js | 7 +++++-- .../plugins/private/vis_types/vislib/jest.config.js | 3 ++- src/platform/plugins/private/vis_types/xy/jest.config.js | 7 +++++-- src/platform/plugins/shared/charts/jest.config.js | 4 +++- src/platform/plugins/shared/charts/public/index.ts | 1 - src/platform/plugins/shared/data/common/index.ts | 1 - src/platform/plugins/shared/data/jest.config.js | 4 +++- src/platform/plugins/shared/expressions/jest.config.js | 7 +++++-- .../plugins/shared/expressions/public/loader.test.ts | 2 +- .../plugins/shared/unified_search/jest.config.js | 7 +++++-- .../plugins/shared/vis_types/timeseries/jest.config.js | 3 ++- .../plugins/shared/visualizations/common/index.ts | 1 - .../plugins/shared/visualizations/jest.config.js | 3 ++- src/plugins/custom_integrations/jest.config.js | 4 +++- .../packages/private/kbn-random-sampling/jest.config.js | 7 +++++-- x-pack/platform/plugins/private/graph/jest.config.js | 4 +++- x-pack/platform/plugins/shared/lens/jest.config.js | 4 +++- 32 files changed, 96 insertions(+), 44 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index c6eab71807f0e..9859fda42be0a 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -595,7 +595,9 @@ module.exports = { * venn.js fork requires special license headers */ { - files: ['x-pack/platform/plugins/private/graph/public/components/venn_diagram/vennjs/**/*.{js,mjs,ts,tsx}'], + files: [ + 'x-pack/platform/plugins/private/graph/public/components/venn_diagram/vennjs/**/*.{js,mjs,ts,tsx}', + ], rules: { '@kbn/eslint/require-license-header': [ 'error', diff --git a/src/dev/storybook/aliases.ts b/src/dev/storybook/aliases.ts index e8986e6f52946..b3fa85e21aa4a 100644 --- a/src/dev/storybook/aliases.ts +++ b/src/dev/storybook/aliases.ts @@ -34,13 +34,16 @@ export const storybookAliases = { expandable_flyout: 'packages/kbn-expandable-flyout/.storybook', expression_error: 'src/plugins/expression_error/.storybook', expression_image: 'src/plugins/expression_image/.storybook', - expression_metric_vis: 'src/platform/plugins/shared/chart_expressions/expression_legacy_metric/.storybook', + expression_metric_vis: + 'src/platform/plugins/shared/chart_expressions/expression_legacy_metric/.storybook', expression_metric: 'src/plugins/expression_metric/.storybook', - expression_partition_vis: 'src/platform/plugins/shared/chart_expressions/expression_partition_vis/.storybook', + expression_partition_vis: + 'src/platform/plugins/shared/chart_expressions/expression_partition_vis/.storybook', expression_repeat_image: 'src/plugins/expression_repeat_image/.storybook', expression_reveal_image: 'src/plugins/expression_reveal_image/.storybook', expression_shape: 'src/plugins/expression_shape/.storybook', - expression_tagcloud: 'src/platform/plugins/shared/chart_expressions/expression_tagcloud/.storybook', + expression_tagcloud: + 'src/platform/plugins/shared/chart_expressions/expression_tagcloud/.storybook', fleet: 'x-pack/plugins/fleet/.storybook', grouping: 'packages/kbn-grouping/.storybook', home: 'src/plugins/home/.storybook', diff --git a/src/platform/packages/shared/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/src/plugins/chart_expressions/common/jest.config.js b/src/platform/packages/shared/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/src/plugins/chart_expressions/common/jest.config.js index 92972cee81db1..c173b8a9e3348 100644 --- a/src/platform/packages/shared/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/src/plugins/chart_expressions/common/jest.config.js +++ b/src/platform/packages/shared/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/src/plugins/chart_expressions/common/jest.config.js @@ -10,5 +10,7 @@ module.exports = { preset: '@kbn/test/jest_node', rootDir: '../../../../../../../../../../../../../../../..', - roots: ['/src/platform/packages/shared/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/src/plugins/chart_expressions/common'], + roots: [ + '/src/platform/packages/shared/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/src/plugins/chart_expressions/common', + ], }; diff --git a/src/platform/plugins/private/event_annotation/jest.config.js b/src/platform/plugins/private/event_annotation/jest.config.js index 52b7028706bc8..39dbe120fbcb9 100644 --- a/src/platform/plugins/private/event_annotation/jest.config.js +++ b/src/platform/plugins/private/event_annotation/jest.config.js @@ -11,7 +11,8 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/src/platform/plugins/private/event_annotation'], - coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/private/event_annotation', + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/private/event_annotation', coverageReporters: ['text', 'html'], collectCoverageFrom: [ '/src/platform/plugins/private/event_annotation/{common,public,server}/**/*.{ts,tsx}', diff --git a/src/platform/plugins/private/event_annotation_listing/jest.config.js b/src/platform/plugins/private/event_annotation_listing/jest.config.js index 5efbf5369b3bc..c6f66690b199f 100644 --- a/src/platform/plugins/private/event_annotation_listing/jest.config.js +++ b/src/platform/plugins/private/event_annotation_listing/jest.config.js @@ -11,7 +11,8 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/src/platform/plugins/private/event_annotation_listing'], - coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/private/event_annotation_listing', + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/private/event_annotation_listing', coverageReporters: ['text', 'html'], collectCoverageFrom: [ '/src/platform/plugins/private/event_annotation_listing/{common,public,server}/**/*.{ts,tsx}', diff --git a/src/platform/plugins/private/url_forwarding/jest.config.js b/src/platform/plugins/private/url_forwarding/jest.config.js index a41ba03f4f9b5..ed7f9d4cb0d5d 100644 --- a/src/platform/plugins/private/url_forwarding/jest.config.js +++ b/src/platform/plugins/private/url_forwarding/jest.config.js @@ -11,7 +11,10 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/src/platform/plugins/private/url_forwarding'], - coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/private/url_forwarding', + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/private/url_forwarding', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/platform/plugins/private/url_forwarding/public/**/*.{ts,tsx}'], + collectCoverageFrom: [ + '/src/platform/plugins/private/url_forwarding/public/**/*.{ts,tsx}', + ], }; diff --git a/src/platform/plugins/private/url_forwarding/public/index.ts b/src/platform/plugins/private/url_forwarding/public/index.ts index 81d14cfd5e1b3..8da437d81dbf4 100644 --- a/src/platform/plugins/private/url_forwarding/public/index.ts +++ b/src/platform/plugins/private/url_forwarding/public/index.ts @@ -8,7 +8,6 @@ */ // TODO: https://github.com/elastic/kibana/issues/110891 -/* eslint-disable @kbn/eslint/no_export_all */ import { UrlForwardingPlugin } from './plugin'; diff --git a/src/platform/plugins/private/vis_default_editor/jest.config.js b/src/platform/plugins/private/vis_default_editor/jest.config.js index f19ca9a0671b0..9b0478534745c 100644 --- a/src/platform/plugins/private/vis_default_editor/jest.config.js +++ b/src/platform/plugins/private/vis_default_editor/jest.config.js @@ -11,7 +11,10 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/src/platform/plugins/private/vis_default_editor'], - coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/private/vis_default_editor', + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/private/vis_default_editor', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/platform/plugins/private/vis_default_editor/public/**/*.{ts,tsx}'], + collectCoverageFrom: [ + '/src/platform/plugins/private/vis_default_editor/public/**/*.{ts,tsx}', + ], }; diff --git a/src/platform/plugins/private/vis_types/gauge/jest.config.js b/src/platform/plugins/private/vis_types/gauge/jest.config.js index 07e6fc53821e9..03e931c487cfa 100644 --- a/src/platform/plugins/private/vis_types/gauge/jest.config.js +++ b/src/platform/plugins/private/vis_types/gauge/jest.config.js @@ -11,7 +11,8 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../../..', roots: ['/src/platform/plugins/private/vis_types/gauge'], - coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/gauge', + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/gauge', coverageReporters: ['text', 'html'], collectCoverageFrom: [ '/src/platform/plugins/private/vis_types/gauge/{common,public,server}/**/*.{ts,tsx}', diff --git a/src/platform/plugins/private/vis_types/heatmap/jest.config.js b/src/platform/plugins/private/vis_types/heatmap/jest.config.js index a616d0d6c5f24..0b06b519839bd 100644 --- a/src/platform/plugins/private/vis_types/heatmap/jest.config.js +++ b/src/platform/plugins/private/vis_types/heatmap/jest.config.js @@ -11,7 +11,8 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../../..', roots: ['/src/platform/plugins/private/vis_types/heatmap'], - coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/heatmap', + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/heatmap', coverageReporters: ['text', 'html'], collectCoverageFrom: [ '/src/platform/plugins/private/vis_types/heatmap/{common,public,server}/**/*.{ts,tsx}', diff --git a/src/platform/plugins/private/vis_types/metric/jest.config.js b/src/platform/plugins/private/vis_types/metric/jest.config.js index 3a9e7f41bfa43..bc7b4f516395b 100644 --- a/src/platform/plugins/private/vis_types/metric/jest.config.js +++ b/src/platform/plugins/private/vis_types/metric/jest.config.js @@ -11,7 +11,10 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../../..', roots: ['/src/platform/plugins/private/vis_types/metric'], - coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/metric', + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/metric', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/platform/plugins/private/vis_types/metric/{public,server}/**/*.{ts,tsx}'], + collectCoverageFrom: [ + '/src/platform/plugins/private/vis_types/metric/{public,server}/**/*.{ts,tsx}', + ], }; diff --git a/src/platform/plugins/private/vis_types/pie/jest.config.js b/src/platform/plugins/private/vis_types/pie/jest.config.js index 8e957d59a8fe6..55d69a830a1e7 100644 --- a/src/platform/plugins/private/vis_types/pie/jest.config.js +++ b/src/platform/plugins/private/vis_types/pie/jest.config.js @@ -11,7 +11,10 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../../..', roots: ['/src/platform/plugins/private/vis_types/pie'], - coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/pie', + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/pie', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/platform/plugins/private/vis_types/pie/{common,public,server}/**/*.{ts,tsx}'], + collectCoverageFrom: [ + '/src/platform/plugins/private/vis_types/pie/{common,public,server}/**/*.{ts,tsx}', + ], }; diff --git a/src/platform/plugins/private/vis_types/table/jest.config.js b/src/platform/plugins/private/vis_types/table/jest.config.js index 3949a70ea5ace..5fa8fc0c3297c 100644 --- a/src/platform/plugins/private/vis_types/table/jest.config.js +++ b/src/platform/plugins/private/vis_types/table/jest.config.js @@ -11,7 +11,8 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../../..', roots: ['/src/platform/plugins/private/vis_types/table'], - coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/table', + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/table', coverageReporters: ['text', 'html'], collectCoverageFrom: [ '/src/platform/plugins/private/vis_types/table/{common,public,server}/**/*.{js,ts,tsx}', diff --git a/src/platform/plugins/private/vis_types/tagcloud/jest.config.js b/src/platform/plugins/private/vis_types/tagcloud/jest.config.js index 09f7b87503eec..d1c2241eeaa09 100644 --- a/src/platform/plugins/private/vis_types/tagcloud/jest.config.js +++ b/src/platform/plugins/private/vis_types/tagcloud/jest.config.js @@ -11,7 +11,10 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../../..', roots: ['/src/platform/plugins/private/vis_types/tagcloud'], - coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/tagcloud', + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/tagcloud', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/platform/plugins/private/vis_types/tagcloud/{public,server}/**/*.{ts,tsx}'], + collectCoverageFrom: [ + '/src/platform/plugins/private/vis_types/tagcloud/{public,server}/**/*.{ts,tsx}', + ], }; diff --git a/src/platform/plugins/private/vis_types/timelion/jest.config.js b/src/platform/plugins/private/vis_types/timelion/jest.config.js index fa02dc049074a..6d8e58b69358a 100644 --- a/src/platform/plugins/private/vis_types/timelion/jest.config.js +++ b/src/platform/plugins/private/vis_types/timelion/jest.config.js @@ -11,7 +11,8 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../../..', roots: ['/src/platform/plugins/private/vis_types/timelion'], - coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/timelion', + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/timelion', coverageReporters: ['text', 'html'], collectCoverageFrom: [ '/src/platform/plugins/private/vis_types/timelion/{common,public,server}/**/*.{js,ts,tsx}', diff --git a/src/platform/plugins/private/vis_types/vega/jest.config.js b/src/platform/plugins/private/vis_types/vega/jest.config.js index aef3aa6d6d68a..65e1dfb519238 100644 --- a/src/platform/plugins/private/vis_types/vega/jest.config.js +++ b/src/platform/plugins/private/vis_types/vega/jest.config.js @@ -11,7 +11,10 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../../..', roots: ['/src/platform/plugins/private/vis_types/vega'], - coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/vega', + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/vega', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/platform/plugins/private/vis_types/vega/{public,server}/**/*.{js,ts,tsx}'], + collectCoverageFrom: [ + '/src/platform/plugins/private/vis_types/vega/{public,server}/**/*.{js,ts,tsx}', + ], }; diff --git a/src/platform/plugins/private/vis_types/vislib/jest.config.js b/src/platform/plugins/private/vis_types/vislib/jest.config.js index cd8adf1a6b702..c3375bc07f43f 100644 --- a/src/platform/plugins/private/vis_types/vislib/jest.config.js +++ b/src/platform/plugins/private/vis_types/vislib/jest.config.js @@ -11,7 +11,8 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../../..', roots: ['/src/platform/plugins/private/vis_types/vislib'], - coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/vislib', + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/vislib', coverageReporters: ['text', 'html'], collectCoverageFrom: [ '/src/platform/plugins/private/vis_types/vislib/{common,public,server}/**/*.{js,ts,tsx}', diff --git a/src/platform/plugins/private/vis_types/xy/jest.config.js b/src/platform/plugins/private/vis_types/xy/jest.config.js index e5b45ce92a010..481d3f78a8797 100644 --- a/src/platform/plugins/private/vis_types/xy/jest.config.js +++ b/src/platform/plugins/private/vis_types/xy/jest.config.js @@ -11,7 +11,10 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../../..', roots: ['/src/platform/plugins/private/vis_types/xy'], - coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/xy', + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/xy', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/platform/plugins/private/vis_types/xy/{common,public,server}/**/*.{ts,tsx}'], + collectCoverageFrom: [ + '/src/platform/plugins/private/vis_types/xy/{common,public,server}/**/*.{ts,tsx}', + ], }; diff --git a/src/platform/plugins/shared/charts/jest.config.js b/src/platform/plugins/shared/charts/jest.config.js index c3205af188583..1979443fbd6ee 100644 --- a/src/platform/plugins/shared/charts/jest.config.js +++ b/src/platform/plugins/shared/charts/jest.config.js @@ -13,5 +13,7 @@ module.exports = { roots: ['/src/platform/plugins/shared/charts'], coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/charts', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/platform/plugins/shared/charts/{common,public,server}/**/*.{ts,tsx}'], + collectCoverageFrom: [ + '/src/platform/plugins/shared/charts/{common,public,server}/**/*.{ts,tsx}', + ], }; diff --git a/src/platform/plugins/shared/charts/public/index.ts b/src/platform/plugins/shared/charts/public/index.ts index 6b70018ac5901..33b70e86cd027 100644 --- a/src/platform/plugins/shared/charts/public/index.ts +++ b/src/platform/plugins/shared/charts/public/index.ts @@ -8,7 +8,6 @@ */ // TODO: https://github.com/elastic/kibana/issues/110891 -/* eslint-disable @kbn/eslint/no_export_all */ import { RangeSelectContext, diff --git a/src/platform/plugins/shared/data/common/index.ts b/src/platform/plugins/shared/data/common/index.ts index 485978479b347..f802d0560f70f 100644 --- a/src/platform/plugins/shared/data/common/index.ts +++ b/src/platform/plugins/shared/data/common/index.ts @@ -8,7 +8,6 @@ */ // TODO: https://github.com/elastic/kibana/issues/109904 -/* eslint-disable @kbn/eslint/no_export_all */ export { DEFAULT_QUERY_LANGUAGE, diff --git a/src/platform/plugins/shared/data/jest.config.js b/src/platform/plugins/shared/data/jest.config.js index 23d674028f945..332abc7b38cd6 100644 --- a/src/platform/plugins/shared/data/jest.config.js +++ b/src/platform/plugins/shared/data/jest.config.js @@ -13,5 +13,7 @@ module.exports = { roots: ['/src/platform/plugins/shared/data'], coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/data', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/platform/plugins/shared/data/{common,public,server}/**/*.{ts,tsx}'], + collectCoverageFrom: [ + '/src/platform/plugins/shared/data/{common,public,server}/**/*.{ts,tsx}', + ], }; diff --git a/src/platform/plugins/shared/expressions/jest.config.js b/src/platform/plugins/shared/expressions/jest.config.js index 8547de8897b85..c371bb45eb2f7 100644 --- a/src/platform/plugins/shared/expressions/jest.config.js +++ b/src/platform/plugins/shared/expressions/jest.config.js @@ -11,7 +11,10 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/src/platform/plugins/shared/expressions'], - coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/expressions', + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/shared/expressions', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/platform/plugins/shared/expressions/{common,public,server}/**/*.{ts,tsx}'], + collectCoverageFrom: [ + '/src/platform/plugins/shared/expressions/{common,public,server}/**/*.{ts,tsx}', + ], }; diff --git a/src/platform/plugins/shared/expressions/public/loader.test.ts b/src/platform/plugins/shared/expressions/public/loader.test.ts index e31ce3e98149c..b3098bfd8dd0a 100644 --- a/src/platform/plugins/shared/expressions/public/loader.test.ts +++ b/src/platform/plugins/shared/expressions/public/loader.test.ts @@ -21,7 +21,7 @@ import { ExecutionContract, } from '../common'; -// eslint-disable-next-line @typescript-eslint/no-var-requires,import/no-commonjs +// eslint-disable-next-line @typescript-eslint/no-var-requires const { __getLastExecution, __getLastRenderMode } = require('./services'); const element = null as unknown as HTMLElement; diff --git a/src/platform/plugins/shared/unified_search/jest.config.js b/src/platform/plugins/shared/unified_search/jest.config.js index 8177d2e6ad29b..5e3e6964bc3f2 100644 --- a/src/platform/plugins/shared/unified_search/jest.config.js +++ b/src/platform/plugins/shared/unified_search/jest.config.js @@ -11,8 +11,11 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/src/platform/plugins/shared/unified_search'], - coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/unified_search', + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/shared/unified_search', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/platform/plugins/shared/unified_search/public/**/*.{ts,tsx}'], + collectCoverageFrom: [ + '/src/platform/plugins/shared/unified_search/public/**/*.{ts,tsx}', + ], setupFiles: ['jest-canvas-mock'], }; diff --git a/src/platform/plugins/shared/vis_types/timeseries/jest.config.js b/src/platform/plugins/shared/vis_types/timeseries/jest.config.js index 3c266589e9a38..887cc1c8d2619 100644 --- a/src/platform/plugins/shared/vis_types/timeseries/jest.config.js +++ b/src/platform/plugins/shared/vis_types/timeseries/jest.config.js @@ -11,7 +11,8 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../../..', roots: ['/src/platform/plugins/shared/vis_types/timeseries'], - coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/vis_types/timeseries', + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/shared/vis_types/timeseries', coverageReporters: ['text', 'html'], collectCoverageFrom: [ '/src/platform/plugins/shared/vis_types/timeseries/{common,public,server}/**/*.{js,ts,tsx}', diff --git a/src/platform/plugins/shared/visualizations/common/index.ts b/src/platform/plugins/shared/visualizations/common/index.ts index 1bdec4caa2070..353adcef8603f 100644 --- a/src/platform/plugins/shared/visualizations/common/index.ts +++ b/src/platform/plugins/shared/visualizations/common/index.ts @@ -8,7 +8,6 @@ */ // TODO: https://github.com/elastic/kibana/issues/110891 -/* eslint-disable @kbn/eslint/no_export_all */ /** @public types */ export * from './types'; diff --git a/src/platform/plugins/shared/visualizations/jest.config.js b/src/platform/plugins/shared/visualizations/jest.config.js index 897933b9708a3..a086d950bc5ac 100644 --- a/src/platform/plugins/shared/visualizations/jest.config.js +++ b/src/platform/plugins/shared/visualizations/jest.config.js @@ -11,7 +11,8 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/src/platform/plugins/shared/visualizations'], - coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/visualizations', + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/shared/visualizations', coverageReporters: ['text', 'html'], collectCoverageFrom: [ '/src/platform/plugins/shared/visualizations/{common,public,server}/**/*.{js,ts,tsx}', diff --git a/src/plugins/custom_integrations/jest.config.js b/src/plugins/custom_integrations/jest.config.js index 5b484a2804f96..8c7b58d55e5a7 100644 --- a/src/plugins/custom_integrations/jest.config.js +++ b/src/plugins/custom_integrations/jest.config.js @@ -13,5 +13,7 @@ module.exports = { roots: ['/src/plugins/custom_integrations'], coverageDirectory: '/target/kibana-coverage/jest/src/plugins/custom_integrations', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/platform/plugins/shared/data/{common,public,server}/**/*.{ts,tsx}'], + collectCoverageFrom: [ + '/src/platform/plugins/shared/data/{common,public,server}/**/*.{ts,tsx}', + ], }; diff --git a/x-pack/platform/packages/private/kbn-random-sampling/jest.config.js b/x-pack/platform/packages/private/kbn-random-sampling/jest.config.js index 67703da61545c..270828d337062 100644 --- a/x-pack/platform/packages/private/kbn-random-sampling/jest.config.js +++ b/x-pack/platform/packages/private/kbn-random-sampling/jest.config.js @@ -9,7 +9,10 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/x-pack/platform/packages/private/kbn-random-sampling'], - coverageDirectory: '/target/kibana-coverage/jest/x-pack/platform/packages/private/kbn-random-sampling', + coverageDirectory: + '/target/kibana-coverage/jest/x-pack/platform/packages/private/kbn-random-sampling', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/x-pack/platform/packages/private/kbn-random-sampling/public/**/*.{ts,tsx}'], + collectCoverageFrom: [ + '/x-pack/platform/packages/private/kbn-random-sampling/public/**/*.{ts,tsx}', + ], }; diff --git a/x-pack/platform/plugins/private/graph/jest.config.js b/x-pack/platform/plugins/private/graph/jest.config.js index 1963046343119..6748b50f3eed0 100644 --- a/x-pack/platform/plugins/private/graph/jest.config.js +++ b/x-pack/platform/plugins/private/graph/jest.config.js @@ -11,5 +11,7 @@ module.exports = { roots: ['/x-pack/platform/plugins/private/graph'], coverageDirectory: '/target/kibana-coverage/jest/x-pack/platform/plugins/private/graph', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/x-pack/platform/plugins/private/graph/{common,public,server}/**/*.{js,ts,tsx}'], + collectCoverageFrom: [ + '/x-pack/platform/plugins/private/graph/{common,public,server}/**/*.{js,ts,tsx}', + ], }; diff --git a/x-pack/platform/plugins/shared/lens/jest.config.js b/x-pack/platform/plugins/shared/lens/jest.config.js index 6a2addc009cb5..58bcb55d693c0 100644 --- a/x-pack/platform/plugins/shared/lens/jest.config.js +++ b/x-pack/platform/plugins/shared/lens/jest.config.js @@ -11,6 +11,8 @@ module.exports = { roots: ['/x-pack/platform/plugins/shared/lens'], coverageDirectory: '/target/kibana-coverage/jest/x-pack/platform/plugins/shared/lens', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/x-pack/platform/plugins/shared/lens/{common,public,server}/**/*.{ts,tsx}'], + collectCoverageFrom: [ + '/x-pack/platform/plugins/shared/lens/{common,public,server}/**/*.{ts,tsx}', + ], setupFiles: ['jest-canvas-mock'], };