diff options
author | Clement Ho <clemmakesapps@gmail.com> | 2017-06-26 13:19:14 +0000 |
---|---|---|
committer | Clement Ho <clemmakesapps@gmail.com> | 2017-06-26 13:19:14 +0000 |
commit | 47face017562b160dba2c9bb5d7b9e75f605f721 (patch) | |
tree | 3626511b14e7c9689e0fa0931293f0d3f4e2470e | |
parent | bff82b784bac7af8cf3a3d8b49fa10ebd1ef67f0 (diff) | |
parent | 1a58170bd4634753d8c96393744093e79caf0460 (diff) | |
download | gitlab-ce-47face017562b160dba2c9bb5d7b9e75f605f721.tar.gz |
Merge branch 'winh-karma-suppress-vue-tips' into 'master'
Suppress Vue tips when running Karma
See merge request !12379
-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 075b72f35b2..d4e134583c7 100644 --- a/spec/javascripts/test_bundle.js +++ b/spec/javascripts/test_bundle.js @@ -7,6 +7,10 @@ import '~/commons'; import Vue from 'vue'; import VueResource from 'vue-resource'; +const isHeadlessChrome = /\bHeadlessChrome\//.test(navigator.userAgent); +Vue.config.devtools = !isHeadlessChrome; +Vue.config.productionTip = false; + Vue.use(VueResource); // enable test fixtures |