Skip to content

Commit

Permalink
feat: adds no-sandbox to ChromeHeadless in karma config (#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertoElias authored and hugomrdias committed Feb 21, 2019
1 parent 0d4b2d1 commit a6f4cc2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/config/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,13 @@ const karmaConfig = (config, files, grep, progress) => {
}

return {
browsers: ['ChromeHeadless'],
browsers: ['ChromeHeadlessNoSandbox'],
customLaunchers: {
ChromeHeadlessNoSandbox: {
base: 'ChromeHeadless',
flags: ['--no-sandbox']
}
},
frameworks: isWebworker ? ['mocha-webworker'] : ['mocha'],
basePath: process.cwd(),
files: files.map(f => {
Expand Down

0 comments on commit a6f4cc2

Please sign in to comment.