Commit 45bfa8c6 authored by Andrew Fontaine's avatar Andrew Fontaine

Merge branch 'ps-support-js-jest-config' into 'master'

Add support for jh/jest.config.js

See merge request gitlab-org/gitlab!74098
parents 5e88a37a 2fa3c81a
const fs = require('fs');
const IS_JH = require('./config/helpers/is_jh_env');
const baseConfig = require('./jest.config.base');
module.exports = {
// 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'),
};
};
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment