Compare commits

...

2 Commits

Author SHA1 Message Date
Nicolas Arenas 97ceec1771 Install chromium in Dockerfile 2024-10-24 18:30:41 +02:00
Nicolas Arenas 10a81de899 Adds karma configuration for xunit reporting 2024-10-24 18:27:40 +02:00
2 changed files with 8 additions and 3 deletions

View File

@ -1,6 +1,7 @@
FROM node:22.1.0
WORKDIR /app
RUN apt -y update && apt -y install chromium
RUN npm install -g npm@latest
@ -9,8 +10,6 @@ RUN npm install -g @angular/cli@^12.0.0
COPY . /app
RUN npm install
RUN ng test --watch=false --source-map=false --karma-config=karma.conf.js
EXPOSE 4200
CMD ["ng", "serve", "--host", "0.0.0.0", "--disable-host-check"]

View File

@ -27,7 +27,13 @@ module.exports = function(config) {
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
browsers: ['ChromeHeadlessNoSandbox'],
customLaunchers: {
ChromeHeadlessNoSandbox: {
base: 'ChromeHeadless',
flags: ['--no-sandbox','--disable-setuid-sandbox']
}
},
singleRun: false,
restartOnFileChange: true
});