Skip to content

Commit e48a85d

Browse files
ArtifexEtNagRock
authored andcommitted
Fix for build error: Cannot start ChromeHeadless (#78)
1 parent 5537d50 commit e48a85d

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

karma.conf.js

+12-1
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,23 @@ module.exports = function (config) {
2626

2727
reporters: ["progress", "mocha"],
2828

29-
browsers: ["ChromeHeadless", "PhantomJS"],
29+
browsers: ["CustomChromeHeadless", "PhantomJS"],
3030

3131
mochaReporter: {
3232
output: 'minimal'
3333
},
3434

35+
customLaunchers: {
36+
'CustomChromeHeadless': {
37+
base: 'ChromeHeadless',
38+
flags: [
39+
'--no-sandbox',
40+
'--disable-setuid-sandbox'
41+
],
42+
debug: true
43+
}
44+
},
45+
3546
logLevel: config.LOG_INFO,
3647
autoWatch: true,
3748
singleRun: false

0 commit comments

Comments
 (0)