From c396aec27a82ec434ca914c82af77818b5f9e503 Mon Sep 17 00:00:00 2001 From: Jack Reed Date: Sat, 21 Sep 2019 08:08:27 -0600 Subject: [PATCH] Switch to chrome headless --- package.json | 2 +- spec/karma.conf.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index f8d1484..0f2f0d4 100644 --- a/package.json +++ b/package.json @@ -33,8 +33,8 @@ "http-server": "^0.9.0", "jasmine": "^2.5", "karma": "^1.3", + "karma-chrome-launcher": "^3.1.0", "karma-jasmine": "^1.0", - "karma-puppeteer-launcher": "^1.0.4", "leaflet": "^1.0", "puppeteer": "^1.20.0" } diff --git a/spec/karma.conf.js b/spec/karma.conf.js index 997b9a2..65acc00 100644 --- a/spec/karma.conf.js +++ b/spec/karma.conf.js @@ -1,5 +1,6 @@ // Karma configuration // Generated on Wed Mar 16 2016 06:58:00 GMT-0700 (PDT) +process.env.CHROME_BIN = require('puppeteer').executablePath() module.exports = function(config) { config.set({ @@ -63,7 +64,7 @@ module.exports = function(config) { // start these browsers // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher - browsers: ['Puppeteer'], + browsers: ['ChromeHeadless'], // Continuous Integration mode