Use Chrome Headless browser instead of PhantomJS
This commit is contained in:
parent
b904fd871d
commit
d32a53b472
4 changed files with 27 additions and 838 deletions
|
@ -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);
|
||||
|
|
|
@ -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'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue