Skip to content

Commit 22cc06e

Browse files
committed
CI: fix Chrome on ubuntu
1 parent f8f3861 commit 22cc06e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

karma.conf.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,13 @@ module.exports = function(config) {
7070
// enable / disable watching file and executing tests whenever any file changes
7171
autoWatch: false,
7272

73-
browsers: ['ChromeHeadless', 'FirefoxHeadless', 'WebkitHeadless'],
73+
customLaunchers: {
74+
ChromeHeadlessCI: {
75+
base: 'ChromeHeadless',
76+
flags: ['--no-sandbox']
77+
}
78+
},
79+
browsers: ['ChromeHeadlessCI', 'FirefoxHeadless', 'WebkitHeadless'],
7480

7581
// Continuous Integration mode
7682
// if true, Karma captures browsers, runs the tests and exits

0 commit comments

Comments
 (0)