summaryrefslogtreecommitdiff
path: root/spec/frontend/test_setup.js
diff options
context:
space:
mode:
authorTristan Read <tread@gitlab.com>2019-07-22 12:01:42 +0000
committerFatih Acet <acetfatih@gmail.com>2019-07-22 12:01:42 +0000
commit97b325a4a28206d921523e2ce34af0ac4be31bd0 (patch)
tree3c601147271701b373d486ebeac1eb5a7b737382 /spec/frontend/test_setup.js
parent86e002147c5b6791eea3cba68d1de0690c36da7a (diff)
downloadgitlab-ce-97b325a4a28206d921523e2ce34af0ac4be31bd0.tar.gz
Add ability to embed metrics
See https://gitlab.com/gitlab-org/gitlab-ce/issues/30423
Diffstat (limited to 'spec/frontend/test_setup.js')
-rw-r--r--spec/frontend/test_setup.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/frontend/test_setup.js b/spec/frontend/test_setup.js
index 634c78ec029..e4d62b044ca 100644
--- a/spec/frontend/test_setup.js
+++ b/spec/frontend/test_setup.js
@@ -69,3 +69,9 @@ Object.entries(jqueryMatchers).forEach(([matcherName, matcherFactory]) => {
// Tech debt issue TBD
testUtilsConfig.logModifiedComponents = false;
+
+// Basic stub for MutationObserver
+global.MutationObserver = () => ({
+ disconnect: () => {},
+ observe: () => {},
+});