Add --no-sandbox flag to Karma test

This commit is contained in:
Joseph Schorr 2017-11-30 10:24:11 -05:00
parent c168413a8e
commit 45931dc856
2 changed files with 8 additions and 2 deletions

View File

@ -58,7 +58,13 @@ module.exports = function(config) {
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['ChromeHeadless'],
browsers: ['ChromeNoSandbox'],
customLaunchers: {
ChromeNoSandbox: {
base: 'ChromeHeadless',
flags: ['--no-sandbox']
}
},
singleRun: false,
concurrency: Infinity,
mime: {

View File

@ -5,7 +5,7 @@
"version": "1.0.0",
"scripts": {
"dev": "karma start --browsers ChromeHeadless",
"test": "karma start --single-run --browsers ChromeHeadless",
"test": "karma start --single-run --browsers ChromeNoSandbox",
"test:node": "JASMINE_CONFIG_PATH=static/test/jasmine.json jasmine-ts './static/js/**/*.spec.ts'",
"e2e": "ts-node ./node_modules/.bin/protractor static/test/protractor.conf.ts",
"build": "npm run clean && NODE_ENV=production webpack --progress",