Define a custom karma launcher - Chromium with --no-sandbox flag

This commit is contained in:
Lee Miller 2024-02-29 15:55:21 +02:00
parent c535cf7cb7
commit d7084961f1
Signed by: lee.miller
GPG Key ID: 4F97A5EA88F4AB63

View File

@ -53,7 +53,14 @@ module.exports = function(config) {
// start these browsers // start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: ["Chrome", "Firefox"], browsers: ["Chromium", "Firefox"],
customLaunchers: {
Chromium: {
base: "Chrome",
flags: ["--no-sandbox"]
}
},
// Continuous Integration mode // Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits // if true, Karma captures browsers, runs the tests and exits