feat: add edge and firefox headless to karma config

This commit is contained in:
Ayushman Chhabra 2022-05-07 02:27:57 -04:00
parent 67fd248613
commit 84801f4fcf
2 changed files with 10 additions and 1 deletions

View File

@ -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',
],

View File

@ -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",