diff options
author | Paul Slaughter <pslaughter@gitlab.com> | 2019-06-28 07:53:56 -0500 |
---|---|---|
committer | Lukas Eipert <leipert@gitlab.com> | 2019-06-28 18:47:00 +0200 |
commit | 85f65f5f7103ef27b50d102b4c2fe1d049d07b65 (patch) | |
tree | 090b24e2dc9f5ece57a8dee3aa9d3b59d6516a3e /spec/javascripts | |
parent | 7d00eea6971dc128fdc8b43833304b54fa770bf2 (diff) | |
download | gitlab-ce-85f65f5f7103ef27b50d102b4c2fe1d049d07b65.tar.gz |
Set logModifiedComponents in jest and karma
Also:
- stub MutationObserver in Jest
Diffstat (limited to 'spec/javascripts')
-rw-r--r-- | spec/javascripts/test_bundle.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/javascripts/test_bundle.js b/spec/javascripts/test_bundle.js index 8c80a425581..2cc476ed52a 100644 --- a/spec/javascripts/test_bundle.js +++ b/spec/javascripts/test_bundle.js @@ -10,12 +10,16 @@ import VueResource from 'vue-resource'; import Translate from '~/vue_shared/translate'; import CheckEE from '~/vue_shared/mixins/is_ee'; import jasmineDiff from 'jasmine-diff'; +import { config as testUtilsConfig } from '@vue/test-utils'; import { getDefaultAdapter } from '~/lib/utils/axios_utils'; import { FIXTURES_PATH, TEST_HOST } from './test_constants'; import customMatchers from './matchers'; +// Tech debt issue TBD +testUtilsConfig.logModifiedComponents = false; + const isHeadlessChrome = /\bHeadlessChrome\//.test(navigator.userAgent); Vue.config.devtools = !isHeadlessChrome; Vue.config.productionTip = false; |