Skip to content

Commit

Permalink
setup headless
Browse files Browse the repository at this point in the history
  • Loading branch information
scttcper committed May 14, 2023
1 parent 05d6a98 commit 9463962
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ module.exports = function (config) {
autoWatch: true,
browsers: ['Chrome'],
customLaunchers: {
ChromeCI: {
base: `${process.env['TRAVIS'] ? 'ChromeHeadless' : 'Chrome'}`,
flags: process.env['TRAVIS'] ? ['--no-sandbox'] : [],
ChromeHeadlessCustom: {
base: 'ChromeHeadless',
flags: ['--no-sandbox', '--disable-gpu'],
},
},
singleRun: false,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"postbuild": "cpy README.md LICENSE dist",
"test": "ng test --watch=false",
"test:watch": "ng test",
"test:ci": "ng test --watch=false --code-coverage --no-progress",
"test:ci": "ng test --watch=false --code-coverage --no-progress --browsers=ChromeHeadlessCustom",
"lint": "ng lint",
"lint:fix": "ng lint --fix",
"ghpages": "ng build --configuration production --no-progress"
Expand Down

0 comments on commit 9463962

Please sign in to comment.