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 Dec 13, 2024
1 parent b293e42 commit 9e88c52
Show file tree
Hide file tree
Showing 24 changed files with 80 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,21 @@ const codeOwners: Record<string, string[]> = {
'plugins/data_charts': ['team_visualization'],
'plugins/analytics': ['team_analytics'],
'plugins/notification': ['team_alerts', 'team_notifications'],
'solutions/security/plugins/security_solution/public/entity_analytics/components': ['team_security_analytics'],
'solutions/security/plugins/security_solution/public/entity_analytics/components': [
'team_security_analytics',
],
'solutions/security/plugins/security_solution/public/entity_analytics/components/componentA.ts': [
'team_security_analytics',
],
'solutions/security/plugins/security_solution/public/entity_analytics/components/componentB.ts': [
'team_security_analytics',
],
'solutions/security/plugins/security_solution/server/lib/analytics/analytics.ts': ['team_security_analytics'],
'solutions/security/plugins/security_solution/common/api/detection_engine': ['team_security_solution'],
'solutions/security/plugins/security_solution/server/lib/analytics/analytics.ts': [
'team_security_analytics',
],
'solutions/security/plugins/security_solution/common/api/detection_engine': [
'team_security_solution',
],
};

jest.mock('dependency-cruiser', () => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ module.exports = {
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/x-pack/solutions/security/plugins/security_solution/common',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/x-pack/solutions/security/plugins/security_solution/common/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/x-pack/solutions/security/plugins/security_solution/common/**/*.{ts,tsx}',
],
moduleNameMapper: require('../server/__mocks__/module_name_map'),
};
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ module.exports = {
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/x-pack/solutions/security/plugins/security_solution/public/app',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/x-pack/solutions/security/plugins/security_solution/public/app/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/x-pack/solutions/security/plugins/security_solution/public/app/**/*.{ts,tsx}',
],
moduleNameMapper: require('../../server/__mocks__/module_name_map'),
};
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ module.exports = {
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/x-pack/solutions/security/plugins/security_solution/public/cases',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/x-pack/solutions/security/plugins/security_solution/public/cases/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/x-pack/solutions/security/plugins/security_solution/public/cases/**/*.{ts,tsx}',
],
moduleNameMapper: require('../../server/__mocks__/module_name_map'),
};
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
module.exports = {
preset: '@kbn/test',
rootDir: '../../../../../../..',
roots: ['<rootDir>/x-pack/solutions/security/plugins/security_solution/public/cloud_security_posture'],
roots: [
'<rootDir>/x-pack/solutions/security/plugins/security_solution/public/cloud_security_posture',
],
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/x-pack/solutions/security/plugins/security_solution/public/cloud_security_posture',
coverageReporters: ['text', 'html'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ module.exports = {
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/x-pack/solutions/security/plugins/security_solution/public/common',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/x-pack/solutions/security/plugins/security_solution/public/common/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/x-pack/solutions/security/plugins/security_solution/public/common/**/*.{ts,tsx}',
],
moduleNameMapper: require('../../server/__mocks__/module_name_map'),
};
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ module.exports = {
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/x-pack/solutions/security/plugins/security_solution/public/explore',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/x-pack/solutions/security/plugins/security_solution/public/explore/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/x-pack/solutions/security/plugins/security_solution/public/explore/**/*.{ts,tsx}',
],
moduleNameMapper: require('../../server/__mocks__/module_name_map'),
};
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ module.exports = {
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/x-pack/solutions/security/plugins/security_solution/public/flyout',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/x-pack/solutions/security/plugins/security_solution/public/flyout/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/x-pack/solutions/security/plugins/security_solution/public/flyout/**/*.{ts,tsx}',
],
moduleNameMapper: require('../../server/__mocks__/module_name_map'),
};
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../../../../..',
/** all nested directories have their own Jest config file */
testMatch: ['<rootDir>/x-pack/solutions/security/plugins/security_solution/public/*.test.{js,mjs,ts,tsx}'],
testMatch: [
'<rootDir>/x-pack/solutions/security/plugins/security_solution/public/*.test.{js,mjs,ts,tsx}',
],
roots: ['<rootDir>/x-pack/solutions/security/plugins/security_solution/public'],
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/x-pack/solutions/security/plugins/security_solution/public',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ module.exports = {
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/x-pack/solutions/security/plugins/security_solution/public/notes',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/x-pack/solutions/security/plugins/security_solution/public/notes/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/x-pack/solutions/security/plugins/security_solution/public/notes/**/*.{ts,tsx}',
],
moduleNameMapper: require('../../server/__mocks__/module_name_map'),
};
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ module.exports = {
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/x-pack/solutions/security/plugins/security_solution/public/overview',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/x-pack/solutions/security/plugins/security_solution/public/overview/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/x-pack/solutions/security/plugins/security_solution/public/overview/**/*.{ts,tsx}',
],
moduleNameMapper: require('../../server/__mocks__/module_name_map'),
};
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ module.exports = {
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/x-pack/solutions/security/plugins/security_solution/public/resolver',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/x-pack/solutions/security/plugins/security_solution/public/resolver/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/x-pack/solutions/security/plugins/security_solution/public/resolver/**/*.{ts,tsx}',
],
moduleNameMapper: require('../../server/__mocks__/module_name_map'),
};
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
module.exports = {
preset: '@kbn/test',
rootDir: '../../../../../../..',
roots: ['<rootDir>/x-pack/solutions/security/plugins/security_solution/public/security_integrations'],
roots: [
'<rootDir>/x-pack/solutions/security/plugins/security_solution/public/security_integrations',
],
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/x-pack/solutions/security/plugins/security_solution/public/security_integrations',
coverageReporters: ['text', 'html'],
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/solutions/security/plugins/security_solution/scripts',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/x-pack/solutions/security/plugins/security_solution/scripts/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/x-pack/solutions/security/plugins/security_solution/scripts/**/*.{ts,tsx}',
],
};
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
// See: https://github.com/elastic/kibana/issues/117255, this moduleNameMapper creates
// mocks to avoid memory leaks from kibana core.
module.exports = {
'^@kbn/core/server$': '<rootDir>/x-pack/solutions/security/plugins/security_solution/server/__mocks__/core.mock.ts',
'^@kbn/core/server$':
'<rootDir>/x-pack/solutions/security/plugins/security_solution/server/__mocks__/core.mock.ts',
'^@kbn/task-manager-plugin/server$':
'<rootDir>/x-pack/solutions/security/plugins/security_solution/server/__mocks__/task_manager.mock.ts',
'^@kbn/alerting-plugin/server$':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ module.exports = {
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/x-pack/solutions/security/plugins/security_solution/server/client',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/x-pack/solutions/security/plugins/security_solution/server/client/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/x-pack/solutions/security/plugins/security_solution/server/client/**/*.{ts,tsx}',
],
moduleNameMapper: require('../__mocks__/module_name_map'),
};
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ module.exports = {
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/x-pack/solutions/security/plugins/security_solution/server/endpoint',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/x-pack/solutions/security/plugins/security_solution/server/endpoint/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/x-pack/solutions/security/plugins/security_solution/server/endpoint/**/*.{ts,tsx}',
],
moduleNameMapper: require('../__mocks__/module_name_map'),
};
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../../../../..',
/** all nested directories have their own Jest config file */
testMatch: ['<rootDir>/x-pack/solutions/security/plugins/security_solution/server/*.test.{js,mjs,ts,tsx}'],
testMatch: [
'<rootDir>/x-pack/solutions/security/plugins/security_solution/server/*.test.{js,mjs,ts,tsx}',
],
roots: ['<rootDir>/x-pack/solutions/security/plugins/security_solution/server'],
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/x-pack/solutions/security/plugins/security_solution/server',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/x-pack/solutions/security/plugins/security_solution/server/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/x-pack/solutions/security/plugins/security_solution/server/**/*.{ts,tsx}',
],
moduleNameMapper: require('./__mocks__/module_name_map'),
};
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ module.exports = {
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/x-pack/solutions/security/plugins/security_solution/server/lib',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/x-pack/solutions/security/plugins/security_solution/server/lib/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/x-pack/solutions/security/plugins/security_solution/server/lib/**/*.{ts,tsx}',
],
moduleNameMapper: require('../__mocks__/module_name_map'),
};
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ module.exports = {
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/x-pack/solutions/security/plugins/security_solution/server/usage',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/x-pack/solutions/security/plugins/security_solution/server/usage/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/x-pack/solutions/security/plugins/security_solution/server/usage/**/*.{ts,tsx}',
],
moduleNameMapper: require('../__mocks__/module_name_map'),
};
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ module.exports = {
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/x-pack/solutions/security/plugins/security_solution/server/utils',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/x-pack/solutions/security/plugins/security_solution/server/utils/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/x-pack/solutions/security/plugins/security_solution/server/utils/**/*.{ts,tsx}',
],
moduleNameMapper: require('../__mocks__/module_name_map'),
};
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@
module.exports = {
preset: '@kbn/test',
rootDir: '../../../../../',
projects: ['<rootDir>/x-pack/solutions/security/plugins/security_solution_ess/public/jest.config.js'],
projects: [
'<rootDir>/x-pack/solutions/security/plugins/security_solution_ess/public/jest.config.js',
],
};
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../../../../..',
/** all nested directories have their own Jest config file */
testMatch: ['<rootDir>/x-pack/solutions/security/plugins/security_solution_ess/public/**/*.test.{js,mjs,ts,tsx}'],
testMatch: [
'<rootDir>/x-pack/solutions/security/plugins/security_solution_ess/public/**/*.test.{js,mjs,ts,tsx}',
],
roots: ['<rootDir>/x-pack/solutions/security/plugins/security_solution_ess/public'],
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/x-pack/solutions/security/plugins/security_solution_ess/public',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@
module.exports = {
preset: '@kbn/test',
rootDir: '../../../../../',
projects: ['<rootDir>/x-pack/solutions/security/plugins/security_solution_serverless/public/jest.config.js'],
projects: [
'<rootDir>/x-pack/solutions/security/plugins/security_solution_serverless/public/jest.config.js',
],
};

0 comments on commit 9e88c52

Please sign in to comment.