diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-09 21:10:00 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-09 21:10:00 +0000 |
commit | e1b5604609766f635f5029382ea018c612aa3186 (patch) | |
tree | fff466ae7fdf9edf47f84f539995292909ce8f94 /jest.config.js | |
parent | efcaec8a140e2b93d1f43d5afd7a5c35cdd4dad7 (diff) | |
download | gitlab-ce-e1b5604609766f635f5029382ea018c612aa3186.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'jest.config.js')
-rw-r--r-- | jest.config.js | 14 |
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'), + }; +} |