Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/test_setup.js')
-rw-r--r--spec/frontend/test_setup.js15
1 files changed, 0 insertions, 15 deletions
diff --git a/spec/frontend/test_setup.js b/spec/frontend/test_setup.js
index e216f49630f..49eae715a45 100644
--- a/spec/frontend/test_setup.js
+++ b/spec/frontend/test_setup.js
@@ -43,15 +43,6 @@ Object.assign(global, {
preloadFixtures() {},
});
-Object.assign(global, {
- MutationObserver() {
- return {
- disconnect() {},
- observe() {},
- };
- },
-});
-
// custom-jquery-matchers was written for an old Jest version, we need to make it compatible
Object.entries(jqueryMatchers).forEach(([matcherName, matcherFactory]) => {
// Don't override existing Jest matcher
@@ -69,12 +60,6 @@ expect.extend(customMatchers);
// Tech debt issue TBD
testUtilsConfig.logModifiedComponents = false;
-// Basic stub for MutationObserver
-global.MutationObserver = () => ({
- disconnect: () => {},
- observe: () => {},
-});
-
Object.assign(global, {
requestIdleCallback(cb) {
const start = Date.now();