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: acfaee14fbfc59bb726d867cca5206baad95cf93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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')) {
  // 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', {
      roots: ['<rootDir>/spec/frontend/'],
      rootsEE: ['<rootDir>/ee/spec/frontend/'],
      rootsJH: ['<rootDir>/jh/spec/frontend/'],
    }),
  };
}