Use Chrome Headless browser instead of PhantomJS

This commit is contained in:
Sergio Crisostomo 2017-08-23 09:56:17 +02:00
parent b904fd871d
commit d32a53b472
4 changed files with 27 additions and 838 deletions

View file

@ -1,10 +1,6 @@
import Vue from 'vue';
Vue.config.productionTip = false;
// Polyfill fn.bind() for PhantomJS
/* eslint-disable no-extend-native */
Function.prototype.bind = require('function-bind');
// require all test files (files that ends with .spec.js)
const testsContext = require.context('./specs', true, /\.spec$/);
testsContext.keys().forEach(testsContext);

View file

@ -11,7 +11,7 @@ module.exports = function (config) {
// 1. install corresponding karma launcher
// http://karma-runner.github.io/0.13/config/browsers.html
// 2. add it to the `browsers` array below.
browsers: ['PhantomJS'],
browsers: ['ChromeHeadless'],
frameworks: ['mocha', 'sinon-chai'],
reporters: ['spec', 'coverage'],
files: ['./index.js'],