summaryrefslogtreecommitdiff
path: root/jest.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'jest.config.js')
-rw-r--r--jest.config.js10
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'];