summaryrefslogtreecommitdiff
path: root/jest.config.js
diff options
context:
space:
mode:
authorWinnie Hellmann <winnie@gitlab.com>2019-03-26 20:49:05 +0100
committerWinnie Hellmann <winnie@gitlab.com>2019-03-26 20:49:05 +0100
commitfbe1f8b4cb7cfca5aa6a6a1cd36600e77f52cf68 (patch)
tree1344ab2ccb9940147013f08c3a2a3ea1b4c358d0 /jest.config.js
parentf9f5ebc2ac751ceb288381d1792aecec43bdbe39 (diff)
downloadgitlab-ce-fbe1f8b4cb7cfca5aa6a6a1cd36600e77f52cf68.tar.gz
Provide custom Jest environment with mocked console
Diffstat (limited to 'jest.config.js')
-rw-r--r--jest.config.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/jest.config.js b/jest.config.js
index 1f6e04390ae..cd0d311779d 100644
--- a/jest.config.js
+++ b/jest.config.js
@@ -37,4 +37,5 @@ module.exports = {
},
transformIgnorePatterns: ['node_modules/(?!(@gitlab/ui)/)'],
timers: 'fake',
+ testEnvironment: '<rootDir>/spec/frontend/environment.js',
};