Skip to content

Commit

Permalink
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
Browse files Browse the repository at this point in the history
…-fix'
  • Loading branch information
kibanamachine committed Jan 4, 2025
1 parent 2abcfa4 commit 91b4932
Show file tree
Hide file tree
Showing 14 changed files with 40 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ export class Router<Context extends RequestHandlerContextBase = RequestHandlerCo
? route.security
: validRouteSecurity(route.security as DeepPartial<RouteSecurity>, route.options),
validationSchemas: route.validate,
// @ts-ignore using isVersioned: false in the type instead of boolean
// @ts-expect-error using isVersioned: false in the type instead of boolean
// for typeguarding between versioned and unversioned RouterRoute types
isVersioned,
});
Expand Down
4 changes: 3 additions & 1 deletion src/platform/plugins/private/ftr_apis/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ module.exports = {
roots: ['<rootDir>/src/platform/plugins/private/ftr_apis'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/platform/plugins/private/ftr_apis',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/platform/plugins/private/ftr_apis/{common,public,server}/**/*.{js,ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/private/ftr_apis/{common,public,server}/**/*.{js,ts,tsx}',
],
};
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../../../..',
roots: ['<rootDir>/src/platform/plugins/private/kibana_usage_collection'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/platform/plugins/private/kibana_usage_collection',
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/src/platform/plugins/private/kibana_usage_collection',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/private/kibana_usage_collection/{common,server}/**/*.{ts,tsx}',
Expand Down
4 changes: 3 additions & 1 deletion src/platform/plugins/shared/newsfeed/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ module.exports = {
roots: ['<rootDir>/src/platform/plugins/shared/newsfeed'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/platform/plugins/shared/newsfeed',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/platform/plugins/shared/newsfeed/{common,public,server}/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/shared/newsfeed/{common,public,server}/**/*.{ts,tsx}',
],
};
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../../../..',
roots: ['<rootDir>/src/platform/plugins/shared/saved_objects_management'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/platform/plugins/shared/saved_objects_management',
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/src/platform/plugins/shared/saved_objects_management',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/shared/saved_objects_management/{common,public,server}/**/*.{ts,tsx}',
Expand Down
4 changes: 3 additions & 1 deletion src/platform/plugins/shared/telemetry/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ module.exports = {
roots: ['<rootDir>/src/platform/plugins/shared/telemetry'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/platform/plugins/shared/telemetry',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/platform/plugins/shared/telemetry/{common,public,server}/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/shared/telemetry/{common,public,server}/**/*.{ts,tsx}',
],
};
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@ module.exports = {
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/src/platform/plugins/shared/telemetry_management_section',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/platform/plugins/shared/telemetry_management_section/public/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/shared/telemetry_management_section/public/**/*.{ts,tsx}',
],
};
3 changes: 2 additions & 1 deletion src/platform/plugins/shared/usage_collection/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../../../..',
roots: ['<rootDir>/src/platform/plugins/shared/usage_collection'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/platform/plugins/shared/usage_collection',
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/src/platform/plugins/shared/usage_collection',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/shared/usage_collection/{common,public,server}/**/*.{ts,tsx}',
Expand Down
4 changes: 3 additions & 1 deletion test/common/plugins/newsfeed/server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ export class NewsFeedSimulatorPlugin implements Plugin {
items: [
{
title: { en: `You are functionally testing the newsfeed widget with fixtures!` },
description: { en: 'See test/common/platform/plugins/shared/newsfeed/newsfeed_simulation' },
description: {
en: 'See test/common/platform/plugins/shared/newsfeed/newsfeed_simulation',
},
link_text: { en: 'Generic feed-viewer could go here' },
link_url: { en: 'https://feeds.elastic.co' },
languages: null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@ module.exports = {
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/x-pack/platform/plugins/private/telemetry_collection_xpack',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/x-pack/platform/plugins/private/telemetry_collection_xpack/server/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/x-pack/platform/plugins/private/telemetry_collection_xpack/server/**/*.{ts,tsx}',
],
};
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../../../..',
roots: ['<rootDir>/x-pack/platform/plugins/private/upgrade_assistant'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/x-pack/platform/plugins/private/upgrade_assistant',
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/x-pack/platform/plugins/private/upgrade_assistant',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/x-pack/platform/plugins/private/upgrade_assistant/{common,public,server}/**/*.{ts,tsx}',
Expand Down
4 changes: 3 additions & 1 deletion x-pack/platform/plugins/shared/cloud/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ module.exports = {
roots: ['<rootDir>/x-pack/platform/plugins/shared/cloud'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/x-pack/platform/plugins/shared/cloud',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/x-pack/platform/plugins/shared/cloud/{common,public,server}/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/x-pack/platform/plugins/shared/cloud/{common,public,server}/**/*.{ts,tsx}',
],
};
7 changes: 5 additions & 2 deletions x-pack/platform/plugins/shared/features/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../../../..',
roots: ['<rootDir>/x-pack/platform/plugins/shared/features'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/x-pack/platform/plugins/shared/features',
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/x-pack/platform/plugins/shared/features',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/x-pack/platform/plugins/shared/features/{common,public,server}/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/x-pack/platform/plugins/shared/features/{common,public,server}/**/*.{ts,tsx}',
],
};
7 changes: 5 additions & 2 deletions x-pack/platform/plugins/shared/licensing/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../../../..',
roots: ['<rootDir>/x-pack/platform/plugins/shared/licensing'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/x-pack/platform/plugins/shared/licensing',
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/x-pack/platform/plugins/shared/licensing',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/x-pack/platform/plugins/shared/licensing/{common,public,server}/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/x-pack/platform/plugins/shared/licensing/{common,public,server}/**/*.{ts,tsx}',
],
};

0 comments on commit 91b4932

Please sign in to comment.