diff --git a/.eslintignore b/.eslintignore
index f78840e67beaae5255f4001eea06dc8e798f2a60..9a5e15c86aed65958e2c33f5a7211328470ac74b 100644
--- a/.eslintignore
+++ b/.eslintignore
@@ -9,5 +9,6 @@
 /scripts/
 /tmp/
 /vendor/
+jest.config.js
 karma.config.js
 webpack.config.js
diff --git a/jest.config.js b/jest.config.js
index cd0d311779db5a22d6a7b3254fef4810ecfbd6fd..4cdc16adc16475025e55e180cfa638b8be2c4b1a 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'];