From 84801f4fcff45570d11d8eabd600164e9ab6c247 Mon Sep 17 00:00:00 2001 From: Ayushman Chhabra Date: Sat, 7 May 2022 02:27:57 -0400 Subject: [PATCH] feat: add edge and firefox headless to karma config --- karma.conf.js | 9 ++++++++- package.json | 2 ++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/karma.conf.js b/karma.conf.js index fdc36a96..9f30d2bc 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -3,6 +3,7 @@ const puppeteer = require('puppeteer'); process.env.CHROME_BIN = puppeteer.executablePath(); +process.env.EDGE_BIN = puppeteer.executablePath(); module.exports = function(config) { @@ -67,10 +68,16 @@ module.exports = function(config) { // start these browsers // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher - browsers: ['ChromeHeadless'], + browsers: [ + 'ChromeHeadless', + 'EdgeHeadless', + 'FirefoxHeadless', + ], plugins: [ 'karma-chrome-launcher', + '@chiragrupani/karma-chromium-edge-launcher', + 'karma-firefox-launcher', 'karma-jasmine', ], diff --git a/package.json b/package.json index 3b5d0f37..5847c09a 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ "format": "grunt eslint --fix" }, "devDependencies": { + "@chiragrupani/karma-chromium-edge-launcher": "^2.2.1", "@happikitsune/grunt-nw-builder": "3.5.10", "dateformat": "4.5.1", "fs-extra": "10.1.0", @@ -56,6 +57,7 @@ "jasmine-core": "4.1.0", "karma": "6.3.19", "karma-chrome-launcher": "3.1.1", + "karma-firefox-launcher": "^2.1.2", "karma-jasmine": "5.0.0", "karma-phantomjs-launcher": "1.0.4", "load-grunt-tasks": "5.1.0",