diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2019-03-28 18:13:20 +0100 |
---|---|---|
committer | Winnie Hellmann <winnie@gitlab.com> | 2019-03-28 18:14:47 +0100 |
commit | 5a2d7bf245aea165a2569916e8419e76c5715fda (patch) | |
tree | 55c50b7cdcc9b202be7b2c4865eee055ca494f70 /jest.config.js | |
parent | baa671a3895acde31ea4433023e90ca72a7ae933 (diff) | |
download | gitlab-ce-5a2d7bf245aea165a2569916e8419e76c5715fda.tar.gz |
Ignore Jest config from ESLint
Diffstat (limited to 'jest.config.js')
-rw-r--r-- | jest.config.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/jest.config.js b/jest.config.js index cd0d311779d..4cdc16adc16 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,4 +1,12 @@ -/* eslint-disable filenames/match-regex */ + +const fs = require('fs'); +const path = require('path'); + +const ROOT_PATH = __dirname; +const IS_EE = + process.env.EE !== undefined + ? JSON.parse(process.env.EE) + : fs.existsSync(path.join(ROOT_PATH, 'ee')); const reporters = ['default']; |