Skip to content

Commit 4d48767

Browse files
committed
Chrome with --no-sandbox for docker/codepipeline
1 parent 786f825 commit 4d48767

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test/unit/config/karma.unit.conf.cjs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,17 @@ module.exports = function (config) {
108108

109109
// enable / disable watching file and executing tests whenever any file changes
110110
autoWatch: false,
111+
112+
customLaunchers: {
113+
Chrome_for_docker: {
114+
base: 'ChromeHeadless',
115+
flags: ['--disable-gpu','--no-sandbox']
116+
}
117+
},
111118

112119
// start these browsers
113120
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
114-
browsers: ['ChromeHeadless', 'FirefoxHeadless'],
121+
browsers: ['Chrome_for_docker', 'FirefoxHeadless'],
115122

116123
// Continuous Integration mode
117124
// if true, Karma captures browsers, runs the tests and exits

0 commit comments

Comments
 (0)