Skip to content

Commit bcbe3a8

Browse files
committed
chore(NA): add module name mapper for src plugins on x-pack (elastic#67103)
1 parent b6cb228 commit bcbe3a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export function createJestConfig({ kibanaDirectory, xPackKibanaDirectory }) {
1818
'uiExports/(.*)': fileMockPath,
1919
'^src/core/(.*)': `${kibanaDirectory}/src/core/$1`,
2020
'^src/legacy/(.*)': `${kibanaDirectory}/src/legacy/$1`,
21+
'^src/plugins/(.*)': `${kibanaDirectory}/src/plugins/$1`,
2122
'^plugins/([^/.]*)(.*)': `${kibanaDirectory}/src/legacy/core_plugins/$1/public$2`,
2223
'^plugins/xpack_main/(.*);': `${xPackKibanaDirectory}/legacy/plugins/xpack_main/public/$1`,
2324
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': fileMockPath,

0 commit comments

Comments
 (0)