summaryrefslogtreecommitdiff
path: root/spec/frontend
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2019-06-28 18:49:44 +0000
committerMike Greiling <mike@pixelcog.com>2019-06-28 18:49:44 +0000
commitbe83c8eae0f9ca46c7ab08ba4f293935430932f0 (patch)
treedf9844ae23e6360747200bfc4a0fe9e952489230 /spec/frontend
parent1cd8fb49f9b9150faf50767edbdfb564fde8576b (diff)
parent2643d3b38534533c16f36d37fe56a6be56445479 (diff)
downloadgitlab-ce-be83c8eae0f9ca46c7ab08ba4f293935430932f0.tar.gz
Merge branch 'leipert-absolute-scss-paths' into 'master'
Use absolute paths for SCSS imports See merge request gitlab-org/gitlab-ce!30161
Diffstat (limited to 'spec/frontend')
-rw-r--r--spec/frontend/test_setup.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/frontend/test_setup.js b/spec/frontend/test_setup.js
index c17d5253997..15cf18700ed 100644
--- a/spec/frontend/test_setup.js
+++ b/spec/frontend/test_setup.js
@@ -3,6 +3,7 @@ import * as jqueryMatchers from 'custom-jquery-matchers';
import $ from 'jquery';
import Translate from '~/vue_shared/translate';
import axios from '~/lib/utils/axios_utils';
+import { config as testUtilsConfig } from '@vue/test-utils';
import { initializeTestTimeout } from './helpers/timeout';
import { loadHTMLFixture, setHTMLFixture } from './helpers/fixtures';
@@ -60,9 +61,21 @@ 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]) => {
expect.extend({
[matcherName]: matcherFactory().compare,
});
});
+
+// Tech debt issue TBD
+testUtilsConfig.logModifiedComponents = false;