Skip to content

Commit b1a84e3

Browse files
committed
Remove pupeteer
1 parent 1f1ff46 commit b1a84e3

File tree

3 files changed

+913
-947
lines changed

3 files changed

+913
-947
lines changed

js/karma.conf.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ var webpackConfig = require('./webpack.config.js');
44
var webpack = require('webpack');
55
var path = require('path');
66
const process = require('process');
7-
process.env.CHROME_BIN = require('puppeteer').executablePath();
87

98

109
module.exports = function (config) {
@@ -39,11 +38,11 @@ module.exports = function (config) {
3938
logLevel: config.LOG_INFO,
4039
autoWatch: true,
4140
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
42-
browsers: ['HeadlessChrome'],
43-
customLaunchers: {
44-
HeadlessChrome: {
41+
browsers: ['ChromeHeadless'],
42+
customLauncher: {
43+
ChromeHeadless: {
4544
base: 'ChromeHeadless',
46-
flags: ['--no-sandbox']
45+
flags: ['--headless', '--remote-debugging-port=9222']
4746
}
4847
},
4948
// if true, Karma captures browsers, runs the tests and exits

0 commit comments

Comments
 (0)