Skip to content

Commit 78581a4

Browse files
Merge pull request #41 from clj-codes/feat/karma-chromium
feat: chromium headless no-sandbox mode
2 parents 15bb0d8 + c5437ca commit 78581a4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

karma.conf.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
module.exports = function (config) {
22
config.set({
3-
browsers: ['ChromiumHeadless'],
3+
browsers: ['ChromiumHeadlessNoSandbox'],
4+
customLaunchers: {
5+
// This will allow CI pipelines to run karma tests as root
6+
ChromiumHeadlessNoSandbox: {
7+
base: 'ChromiumHeadless',
8+
flags: ['--no-sandbox']
9+
}
10+
},
411
// The directory where the output file lives
512
basePath: 'resources/tests',
613
// The file itself

0 commit comments

Comments
 (0)