Skip to content

Commit b8c0910

Browse files
Update Karma configuration to use a custom ChromeHeadless launcher for ubuntu-latest
1 parent 4097277 commit b8c0910

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

karma/config.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,14 @@ module.exports = {
1515
],
1616

1717
// Run on Chrome Headless
18-
browsers: [
19-
'ChromeHeadless'
20-
],
18+
customLaunchers: {
19+
ChromeHeadlessNoSandbox: {
20+
base: 'ChromeHeadless',
21+
// Flags required to run in ubuntu-22.04 or above (https://chromium.googlesource.com/chromium/src/+/master/docs/linux/suid_sandbox_development.md)
22+
flags: ['--no-sandbox', '--disable-setuid-sandbox']
23+
}
24+
},
25+
browsers: ['ChromeHeadlessNoSandbox'],
2126

2227
// list of files / patterns to load in the browser
2328
files: [

0 commit comments

Comments
 (0)