From 50f789848de56c4d6ea4adff55f0b3743e1f63b6 Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Thu, 29 Feb 2024 15:55:21 +0200 Subject: [PATCH] Define a custom karma launcher - Chromium with --no-sandbox flag --- karma.conf.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/karma.conf.js b/karma.conf.js index ac6db69..cf86f34 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -53,7 +53,14 @@ module.exports = function(config) { // start these browsers // 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 // if true, Karma captures browsers, runs the tests and exits