summaryrefslogtreecommitdiff
path: root/jest.config.integration.js
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-04-20 23:50:22 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-04-20 23:50:22 +0000
commit9dc93a4519d9d5d7be48ff274127136236a3adb3 (patch)
tree70467ae3692a0e35e5ea56bcb803eb512a10bedb /jest.config.integration.js
parent4b0f34b6d759d6299322b3a54453e930c6121ff0 (diff)
downloadgitlab-ce-9dc93a4519d9d5d7be48ff274127136236a3adb3.tar.gz
Add latest changes from gitlab-org/gitlab@13-11-stable-eev13.11.0-rc43
Diffstat (limited to 'jest.config.integration.js')
-rw-r--r--jest.config.integration.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/jest.config.integration.js b/jest.config.integration.js
index 573002c1a34..92296fb751e 100644
--- a/jest.config.integration.js
+++ b/jest.config.integration.js
@@ -1,5 +1,16 @@
+const checkEnvironment = require('./config/helpers/check_frontend_integration_env');
const baseConfig = require('./jest.config.base');
+checkEnvironment();
+
module.exports = {
- ...baseConfig('spec/frontend_integration'),
+ ...baseConfig('spec/frontend_integration', {
+ moduleNameMapper: {
+ '^test_helpers(/.*)$': '<rootDir>/spec/frontend_integration/test_helpers$1',
+ '^ee_else_ce_test_helpers(/.*)$': '<rootDir>/spec/frontend_integration/test_helpers$1',
+ },
+ moduleNameMapperEE: {
+ '^ee_else_ce_test_helpers(/.*)$': '<rootDir>/ee/spec/frontend_integration/test_helpers$1',
+ },
+ }),
};