summaryrefslogtreecommitdiff
path: root/jest.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'jest.config.js')
-rw-r--r--jest.config.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/jest.config.js b/jest.config.js
index e4ac71a1a17..646648c6928 100644
--- a/jest.config.js
+++ b/jest.config.js
@@ -31,6 +31,9 @@ module.exports = {
moduleNameMapper: {
'^~(/.*)$': '<rootDir>/app/assets/javascripts$1',
'^ee(/.*)$': '<rootDir>/ee/app/assets/javascripts$1',
+ '^ee_component(/.*)$': IS_EE
+ ? '<rootDir>/ee/app/assets/javascripts$1'
+ : '<rootDir>/app/assets/javascripts/vue_shared/components/empty_component.js',
'^ee_else_ce(/.*)$': IS_EE
? '<rootDir>/ee/app/assets/javascripts$1'
: '<rootDir>/app/assets/javascripts$1',