Skip to content

Commit

Permalink
fix chromeHeadless
Browse files Browse the repository at this point in the history
  • Loading branch information
muhuchah committed Aug 17, 2024
1 parent 4b0bf3b commit af1832f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 3 additions & 2 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']
}
Expand Down

0 comments on commit af1832f

Please sign in to comment.