run karma on chrome headless

pull/6250/head
Jens Ulferts 7 years ago
parent ced885d1a8
commit ed92b2236d
No known key found for this signature in database
GPG Key ID: 3CAA4B1182CF5308
  1. 8
      frontend/karma.conf.js
  2. 2
      frontend/npm-shrinkwrap.json
  3. 4
      frontend/package.json

@ -106,7 +106,13 @@ module.exports = function (config) {
// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: ['Firefox'],
browsers: ['HeadlessChrome'],
customLaunchers:{
HeadlessChrome:{
base: 'Chrome',
flags: ['--headless', '--disable-gpu', '--remote-debugging-port=9222']
}
},
// Continuous Integration mode

@ -3834,7 +3834,7 @@
"jquery-mockjax": {
"version": "2.2.2",
"resolved": "https://registry.npmjs.org/jquery-mockjax/-/jquery-mockjax-2.2.2.tgz",
"integrity": "sha512-stVgUln5bo7g14KjeU45c31nAYlBHAUVBo4JbdoDYIJ3i6Nzlu8mkjKcAviwad9AU1dBEHHpuzA7R6mKcWgvZA==",
"integrity": "sha1-nH0rEDpEz2HJnMeKnueHhQS2CQc=",
"dev": true,
"requires": {
"jquery": "3.3.1"

@ -14,7 +14,7 @@
"karma-chai": "~0.1.0",
"karma-chai-as-promised": "^0.1.2",
"karma-chai-sinon": "~0.1.3",
"karma-chrome-launcher": "~0.1.3",
"karma-chrome-launcher": "^0.1.12",
"karma-firefox-launcher": "~0.1.3",
"karma-mocha": "^1.3.0",
"karma-ng-html2js-preprocessor": "^0.1.2",
@ -24,8 +24,8 @@
"sinon": "^1.17.5",
"sinon-chai": "^2.8.0",
"sorted-object": "^1.0.0",
"webpack-bundle-analyzer": "2.11.1",
"tslint": "5.9.1",
"webpack-bundle-analyzer": "2.11.1",
"webpack-dev-server": "^1.6.5"
},
"dependencies": {

Loading…
Cancel
Save