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

jest.config.js - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 00c28dad0e112f687e527a4f9bf9043f76bc20fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
const fs = require('fs');
const IS_JH = require('./config/helpers/is_jh_env');
const baseConfig = require('./jest.config.base');

// 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'),
  };
}