diff options
author | Tristan Read <tread@gitlab.com> | 2019-07-22 12:01:42 +0000 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2019-07-22 12:01:42 +0000 |
commit | 97b325a4a28206d921523e2ce34af0ac4be31bd0 (patch) | |
tree | 3c601147271701b373d486ebeac1eb5a7b737382 /spec/frontend/test_setup.js | |
parent | 86e002147c5b6791eea3cba68d1de0690c36da7a (diff) | |
download | gitlab-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.js | 6 |
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: () => {}, +}); |