Skip to content

Commit 1c4470c

Browse files
committed
split tests in two groups
1 parent cbb7206 commit 1c4470c

3 files changed

Lines changed: 40 additions & 4 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the Elastic License
4+
* 2.0; you may not use this file except in compliance with the Elastic License
5+
* 2.0.
6+
*/
7+
8+
module.exports = {
9+
preset: '@kbn/test/jest_integration',
10+
rootDir: '../../../../../../../../../../../..',
11+
modulePathIgnorePatterns: ['upgrade_rule_after_preview'],
12+
roots: [
13+
'<rootDir>/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management_ui/pages/rule_management',
14+
],
15+
testMatch: ['**/*.test.[jt]s?(x)'],
16+
openHandlesTimeout: 0,
17+
forceExit: true,
18+
};

x-pack/solutions/security/plugins/security_solution/public/detection_engine/jest.integration.config.js renamed to x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management_ui/pages/rule_management/__integration_tests__/rules_upgrade/upgrade_rule_after_preview/common_fields/jest.integration.config.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77

88
module.exports = {
99
preset: '@kbn/test/jest_integration',
10-
rootDir: '../../../../../../..',
11-
roots: ['<rootDir>/x-pack/solutions/security/plugins/security_solution/public/detection_engine'],
12-
testMatch: ['**/__integration_tests__/**/*.test.[jt]s?(x)'],
13-
modulePathIgnorePatterns: ['__mocks__', 'mock'],
10+
rootDir: '../../../../../../../../../../../../../..',
11+
roots: [
12+
'<rootDir>/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management_ui/pages/rule_management',
13+
],
14+
testMatch: ['**/common_fields/*.test.[jt]s?(x)'],
1415
openHandlesTimeout: 0,
1516
forceExit: true,
1617
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the Elastic License
4+
* 2.0; you may not use this file except in compliance with the Elastic License
5+
* 2.0.
6+
*/
7+
8+
module.exports = {
9+
preset: '@kbn/test/jest_integration',
10+
rootDir: '../../../../../../../../../../../../../..',
11+
roots: [
12+
'<rootDir>/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management_ui/pages/rule_management',
13+
],
14+
testMatch: ['**/type_specific_fields/*.test.[jt]s?(x)'],
15+
openHandlesTimeout: 0,
16+
forceExit: true,
17+
};

0 commit comments

Comments
 (0)