Merge pull request #1670 from SergioCrisostomo/use-Chrome-Headless

Use Chrome Headless browser instead of PhantomJS
This commit is contained in:
Aresn 2017-08-24 15:55:42 +08:00 committed by GitHub
commit a0d3b159fc
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'],