debian-mirror-gitlab/jest.config.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
492 B
JavaScript
Raw Permalink Normal View History

2021-12-11 22:18:48 +05:30
const fs = require('fs');
const IS_JH = require('./config/helpers/is_jh_env');
2020-05-24 23:13:21 +05:30
const baseConfig = require('./jest.config.base');
2021-12-11 22:18:48 +05:30
// TODO: Remove existsSync once jh has added jest.config.js
if (IS_JH && fs.existsSync('./jh/jest.config.js')) {
// We can't be explicit with eslint-disable rules because in JH it'll pass import/no-unresolved
// eslint-disable-next-line
module.exports = require('./jh/jest.config');
} else {
module.exports = {
...baseConfig('spec/frontend'),
};
}