Skip to content

Commit

Permalink
test: update karma config
Browse files Browse the repository at this point in the history
  • Loading branch information
hjalmers committed Nov 12, 2019
1 parent fa4cc26 commit 551c09b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"ng": "ng",
"start": "ng serve --port=4201",
"build": "ng build --base-href https://sebgroup.github.io/ngx-toastr/ && copyfiles -f src/404.html dist/ngx-toastr",
"build-dev": "ng build --base-href https://sebgroup.github.io/ngx-toastr/dev/ --output-path dist/ngx-toastr//dev && copyfiles -f src/dev/404.html dist/ngx-toastr/dev",
"build-dev": "ng build --base-href https://sebgroup.github.io/ngx-toastr/dev/ --output-path dist/ngx-toastr/dev && copyfiles -f src/dev/404.html dist/ngx-toastr/dev",
"build-lib": "copyfiles -u 1 'scss/**/*.scss' dist/lib/scss && copyfiles -f CHANGELOG.md LICENSE.md README.md scss/package.json dist/lib",
"test": "ng test",
"test-ci": "ng test --watch=false --progress --browsers=ChromeHeadlessNoSandbox",
Expand Down Expand Up @@ -78,7 +78,7 @@
"karma-jasmine": "~1.1.2",
"karma-jasmine-html-reporter": "^0.2.2",
"package-lock-sanitizer": "^1.0.0",
"protractor": "~5.4.0",
"protractor": "^5.4.2",
"semantic-release": "^15.13.30",
"travis-deploy-once": "^5.0.11",
"ts-node": "~7.0.0",
Expand Down
15 changes: 13 additions & 2 deletions src/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,18 @@ module.exports = function (config) {
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
failOnEmptyTestSuite: false,
browsers: ['Chrome', 'ChromeHeadless'],
customLaunchers: {
ChromeNoSandbox: {
base: 'Chrome',
flags: ['--no-sandbox']
},
ChromeHeadlessNoSandbox: {
base: 'ChromeHeadless',
flags: ['--no-sandbox']
}
},
singleRun: false
});
};
};

0 comments on commit 551c09b

Please sign in to comment.