Commit 80352762 authored by winh's avatar winh

Suppress Vue tips when running Karma

parent ee4b5fc6
...@@ -2,6 +2,11 @@ import $ from 'jquery'; ...@@ -2,6 +2,11 @@ import $ from 'jquery';
import _ from 'underscore'; import _ from 'underscore';
import 'jasmine-jquery'; import 'jasmine-jquery';
import '~/commons'; import '~/commons';
import Vue from 'vue';
const isHeadlessChrome = /\bHeadlessChrome\//.test(navigator.userAgent);
Vue.config.devtools = !isHeadlessChrome;
Vue.config.productionTip = false;
// enable test fixtures // enable test fixtures
jasmine.getFixtures().fixturesPath = '/base/spec/javascripts/fixtures'; jasmine.getFixtures().fixturesPath = '/base/spec/javascripts/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