diff --git a/karma.conf.js b/karma.conf.js index 83c9e9b79..22b081f0c 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -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: { diff --git a/package.json b/package.json index fa3c588a8..828195b23 100644 --- a/package.json +++ b/package.json @@ -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",