mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 01:13:23 -04:00
[Fleet] Split jest config public|common|server (#205798)
This commit is contained in:
parent
ac4577159e
commit
8bb2da19ea
5 changed files with 76 additions and 6 deletions
|
@ -7,14 +7,13 @@
|
|||
|
||||
module.exports = {
|
||||
preset: '@kbn/test',
|
||||
rootDir: '../../../../..',
|
||||
roots: ['<rootDir>/x-pack/platform/plugins/shared/fleet'],
|
||||
rootDir: '../../../../../..',
|
||||
roots: ['<rootDir>/x-pack/platform/plugins/shared/fleet/common'],
|
||||
transform: {
|
||||
'^.+\\.stories\\.tsx?$': '@storybook/addon-storyshots/injectFileName',
|
||||
},
|
||||
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/x-pack/platform/plugins/shared/fleet',
|
||||
coverageDirectory:
|
||||
'<rootDir>/target/kibana-coverage/jest/x-pack/platform/plugins/shared/fleet/common',
|
||||
coverageReporters: ['text', 'html'],
|
||||
collectCoverageFrom: [
|
||||
'<rootDir>/x-pack/platform/plugins/shared/fleet/{common,public,server}/**/*.{ts,tsx}',
|
||||
],
|
||||
collectCoverageFrom: ['<rootDir>/x-pack/platform/plugins/shared/fleet/common/**/*.{ts,tsx}'],
|
||||
};
|
17
x-pack/platform/plugins/shared/fleet/jest.config.dev.js
Normal file
17
x-pack/platform/plugins/shared/fleet/jest.config.dev.js
Normal file
|
@ -0,0 +1,17 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
module.exports = {
|
||||
preset: '@kbn/test/jest',
|
||||
rootDir: '../../../../..',
|
||||
roots: ['<rootDir>/x-pack/platform/plugins/shared/fleet'],
|
||||
projects: [
|
||||
'<rootDir>/x-pack/platform/plugins/shared/fleet/common/*/jest.config.js',
|
||||
'<rootDir>/x-pack/platform/plugins/shared/fleet/server/*/jest.config.js',
|
||||
'<rootDir>/x-pack/platform/plugins/shared/fleet/public/*/jest.config.js',
|
||||
],
|
||||
};
|
19
x-pack/platform/plugins/shared/fleet/public/jest.config.js
Normal file
19
x-pack/platform/plugins/shared/fleet/public/jest.config.js
Normal file
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
module.exports = {
|
||||
preset: '@kbn/test',
|
||||
rootDir: '../../../../../..',
|
||||
roots: ['<rootDir>/x-pack/platform/plugins/shared/fleet/public'],
|
||||
transform: {
|
||||
'^.+\\.stories\\.tsx?$': '@storybook/addon-storyshots/injectFileName',
|
||||
},
|
||||
coverageDirectory:
|
||||
'<rootDir>/target/kibana-coverage/jest/x-pack/platform/plugins/shared/fleet/public',
|
||||
coverageReporters: ['text', 'html'],
|
||||
collectCoverageFrom: ['<rootDir>/x-pack/platform/plugins/shared/fleet/public/**/*.{ts,tsx}'],
|
||||
};
|
19
x-pack/platform/plugins/shared/fleet/scripts/jest.config.js
Normal file
19
x-pack/platform/plugins/shared/fleet/scripts/jest.config.js
Normal file
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
module.exports = {
|
||||
preset: '@kbn/test',
|
||||
rootDir: '../../../../../..',
|
||||
roots: ['<rootDir>/x-pack/platform/plugins/shared/fleet/scripts'],
|
||||
transform: {
|
||||
'^.+\\.stories\\.tsx?$': '@storybook/addon-storyshots/injectFileName',
|
||||
},
|
||||
coverageDirectory:
|
||||
'<rootDir>/target/kibana-coverage/jest/x-pack/platform/plugins/shared/fleet/scripts',
|
||||
coverageReporters: ['text', 'html'],
|
||||
collectCoverageFrom: ['<rootDir>/x-pack/platform/plugins/shared/fleet/scripts/**/*.{ts,tsx}'],
|
||||
};
|
16
x-pack/platform/plugins/shared/fleet/server/jest.config.js
Normal file
16
x-pack/platform/plugins/shared/fleet/server/jest.config.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
module.exports = {
|
||||
preset: '@kbn/test',
|
||||
rootDir: '../../../../../..',
|
||||
roots: ['<rootDir>/x-pack/platform/plugins/shared/fleet/server'],
|
||||
coverageDirectory:
|
||||
'<rootDir>/target/kibana-coverage/jest/x-pack/platform/plugins/shared/fleet/server',
|
||||
coverageReporters: ['text', 'html'],
|
||||
collectCoverageFrom: ['<rootDir>/x-pack/platform/plugins/shared/fleet/{server}/**/*.{ts,tsx}'],
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue