From af1832fc732fff504f0298e65a18b6e358e9de90 Mon Sep 17 00:00:00 2001 From: muhuchah Date: Sat, 17 Aug 2024 10:46:21 +0330 Subject: [PATCH] fix chromeHeadless --- Dockerfile | 2 +- karma.conf.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5ae11be..60ae3c1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,7 +24,7 @@ COPY . . RUN npm run lint -RUN ng test --watch=false --browsers=ChromeHeadless +RUN ng test --watch=false --browsers=ChromeHeadlessNoSandbox RUN npm run build --configuration=production diff --git a/karma.conf.js b/karma.conf.js index 06140cb..4f46e02 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -33,9 +33,10 @@ module.exports = function (config) { ] }, reporters: ['progress', 'kjhtml'], - browsers: ['Chrome'], + browsers: ['Chrome', 'ChromeHeadlessNoSandbox'], + restartOnFileChange: true, customLaunchers: { - ChromeHeadlessCustom: { + ChromeHeadlessNoSandbox: { base: 'ChromeHeadless', flags: ['--no-sandbox', '--disable-gpu'] }