Skip to content
This repository was archived by the owner on Apr 15, 2020. It is now read-only.

Commit 2a391a7

Browse files
committed
chore: switch from phantomjs to chrome headless
1 parent 9254301 commit 2a391a7

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.travis.yml

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
language: node_js
2+
addons:
3+
chrome: stable

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@
2525
"grunt-contrib-uglify": "^4.0.0",
2626
"grunt-release-it": "^1.0.1",
2727
"karma": "^4.0.1",
28+
"karma-chrome-launcher": "^2.2.0",
2829
"karma-coverage": "^1.0.0",
2930
"karma-coveralls": "^2.0.0",
3031
"karma-mocha": "^1.0.1",
3132
"karma-mocha-reporter": "^2.0.5",
32-
"karma-phantomjs-launcher": "^1.0.0",
3333
"load-grunt-tasks": "^4.0.0",
3434
"mocha": "^6.0.0",
35-
"phantomjs-prebuilt": "^2.1.8",
35+
"puppeteer": "^1.14.0",
3636
"sinon": "^7.2.4",
3737
"unexpected": "^11.0.1",
3838
"unexpected-sinon": "^10.11.1"

test/karma.conf.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,16 @@ if (process.env.TRAVIS) {
1010
reporters.push('coveralls');
1111
}
1212

13+
process.env.CHROME_BIN = require('puppeteer').executablePath();
14+
1315
module.exports = function (config) {
1416
config.set({
15-
browsers: [ 'PhantomJS' ],
17+
browsers: [ 'ChromeHeadless' ],
1618
plugins: [
1719
'karma-mocha',
1820
'karma-coverage',
1921
'karma-coveralls',
20-
'karma-phantomjs-launcher',
22+
'karma-chrome-launcher',
2123
'karma-mocha-reporter'
2224
],
2325
frameworks: [ 'mocha' ],

0 commit comments

Comments
 (0)