Commit 1a58170b authored by winh's avatar winh

Suppress Vue tips when running Karma

parent 8cc9ab50
...@@ -7,6 +7,10 @@ import '~/commons'; ...@@ -7,6 +7,10 @@ import '~/commons';
import Vue from 'vue'; import Vue from 'vue';
import VueResource from 'vue-resource'; import VueResource from 'vue-resource';
const isHeadlessChrome = /\bHeadlessChrome\//.test(navigator.userAgent);
Vue.config.devtools = !isHeadlessChrome;
Vue.config.productionTip = false;
Vue.use(VueResource); Vue.use(VueResource);
// enable test fixtures // enable test fixtures
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment