From 938a65db21c7b8b5f4a03e88c6ce71af76bc2546 Mon Sep 17 00:00:00 2001 From: sorenjohanson Date: Thu, 10 Oct 2024 10:39:20 +0000 Subject: [PATCH] fix: chrome headless sandbox error --- karma.conf.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/karma.conf.js b/karma.conf.js index 23487ad..2199080 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -37,8 +37,14 @@ module.exports = function (config) { colors: true, logLevel: config.LOG_INFO, autoWatch: true, - browsers: ['ChromeHeadless'], + browsers: ['ChromeHeadlessNoSandbox'], singleRun: false, - restartOnFileChange: true + restartOnFileChange: true, + customLaunchers: { + ChromeHeadlessNoSandbox: { + base: 'ChromeHeadless', + flags: ['--no-sandbox'] + } + } }); };