Skip to content

Commit 50bba72

Browse files
author
Tyler Smalley
committed
Some X-Pack fixes
Signed-off-by: Tyler Smalley <[email protected]>
1 parent 9e2c2c6 commit 50bba72

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

packages/kbn-test/jest-preset.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@ module.exports = {
9090
moduleNameMapper: {
9191
'@elastic/eui/lib/(.*)?': '<rootDir>/node_modules/@elastic/eui/test-env/$1',
9292
'@elastic/eui$': '<rootDir>/node_modules/@elastic/eui/test-env',
93+
'\\.module.(css|scss)$': '<rootDir>/packages/kbn-test/target/jest/mocks/css_module_mock.js',
9394
'\\.(css|less|scss)$': '<rootDir>/packages/kbn-test/target/jest/mocks/style_mock.js',
9495
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
9596
'<rootDir>/packages/kbn-test/target/jest/mocks/file_mock.js',
9697
'\\.ace\\.worker.js$': '<rootDir>/packages/kbn-test/target/jest/mocks/worker_module_mock.js',
9798
'\\.editor\\.worker.js$': '<rootDir>/packages/kbn-test/target/jest/mocks/worker_module_mock.js',
98-
'\\.module.(css|scss)$': '<rootDir>/packages/kbn-test/target/jest/mocks/css_module_mock.js',
9999
'^(!!)?file-loader!': '<rootDir>/packages/kbn-test/target/jest/mocks/file_mock.js',
100100
'^fixtures/(.*)': '<rootDir>/src/fixtures/$1',
101101
'^src/core/(.*)': '<rootDir>/src/core/$1',

x-pack/dev-tools/jest/create_jest_config.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,6 @@ export function createJestConfig({ kibanaDirectory, rootDir }) {
99
preset: '@kbn/test',
1010
rootDir: kibanaDirectory,
1111
roots: [`${rootDir}/plugins`],
12-
collectCoverageFrom: [
13-
'plugins/**/*.{js,mjs,jsx,ts,tsx}',
14-
'!**/{__test__,__snapshots__,__examples__,integration_tests,tests}/**',
15-
'!**/*.test.{js,mjs,ts,tsx}',
16-
'!**/flot-charts/**',
17-
'!**/test/**',
18-
'!**/build/**',
19-
'!**/scripts/**',
20-
'!**/mocks/**',
21-
'!**/plugins/apm/e2e/**',
22-
'!**/plugins/siem/cypress/**',
23-
'!**/plugins/**/test_helpers/**',
24-
],
2512
reporters: [
2613
'default',
2714
[

0 commit comments

Comments
 (0)