Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-11-10 00:10:00 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-11-10 00:10:00 +0300
commite1b5604609766f635f5029382ea018c612aa3186 (patch)
treefff466ae7fdf9edf47f84f539995292909ce8f94 /jest.config.js
parentefcaec8a140e2b93d1f43d5afd7a5c35cdd4dad7 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'jest.config.js')
-rw-r--r--jest.config.js14
1 files changed, 11 insertions, 3 deletions
diff --git a/jest.config.js b/jest.config.js
index 4d9e19abbaf..00c28dad0e1 100644
--- a/jest.config.js
+++ b/jest.config.js
@@ -1,5 +1,13 @@
+const fs = require('fs');
+const IS_JH = require('./config/helpers/is_jh_env');
const baseConfig = require('./jest.config.base');
-module.exports = {
- ...baseConfig('spec/frontend'),
-};
+// TODO: Remove existsSync once jh has added jest.config.js
+if (IS_JH && fs.existsSync('./jh/jest.config.js')) {
+ // eslint-disable-next-line global-require, import/no-unresolved
+ module.exports = require('./jh/jest.config');
+} else {
+ module.exports = {
+ ...baseConfig('spec/frontend'),
+ };
+}