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'] }