diff --git a/karma.conf.js b/karma.conf.js index da306fc..ee38a2a 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -55,7 +55,14 @@ module.exports = function (config) { // start these browsers // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher - browsers: [process.env.NODE_WATCH ? 'Chrome' : 'ChromeHeadless'], + browsers: process.env.NODE_WATCH ? ['Chrome'] : ['ChromeHeadlessNoSandbox'], + + customLaunchers: { + ChromeHeadlessNoSandbox: { + base: 'ChromeHeadless', + flags: ['--no-sandbox'] + } + }, // Continuous Integration mode // if true, Karma captures browsers, runs the tests and exits