Skip to content

Commit

Permalink
disable ChromeHeadless sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
k-genov committed Jan 10, 2025
1 parent dfb4619 commit cc4d8a8
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
8 changes: 7 additions & 1 deletion projects/scion/components.internal/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,14 @@ module.exports = function (config) {
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: [
process.env.HEADLESS ? 'ChromeHeadless' : 'Chrome',
process.env.HEADLESS ? 'ChromeHeadlessNoSandbox' : 'Chrome',
],
customLaunchers: {
ChromeHeadlessNoSandbox: {
base: 'ChromeHeadless',
flags: ['--no-sandbox'],
},
},
singleRun: !!process.env.HEADLESS,
failOnEmptyTestSuite: true,
restartOnFileChange: true,
Expand Down
8 changes: 7 additions & 1 deletion projects/scion/components/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,14 @@ module.exports = function (config) {
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: [
process.env.HEADLESS ? 'ChromeHeadless' : 'Chrome',
process.env.HEADLESS ? 'ChromeHeadlessNoSandbox' : 'Chrome',
],
customLaunchers: {
ChromeHeadlessNoSandbox: {
base: 'ChromeHeadless',
flags: ['--no-sandbox'],
},
},
singleRun: !!process.env.HEADLESS,
failOnEmptyTestSuite: true,
restartOnFileChange: true,
Expand Down
8 changes: 7 additions & 1 deletion projects/scion/toolkit/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,14 @@ module.exports = function (config) {
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: [
process.env.HEADLESS ? 'ChromeHeadless' : 'Chrome',
process.env.HEADLESS ? 'ChromeHeadlessNoSandbox' : 'Chrome',
],
customLaunchers: {
ChromeHeadlessNoSandbox: {
base: 'ChromeHeadless',
flags: ['--no-sandbox'],
},
},
singleRun: !!process.env.HEADLESS,
failOnEmptyTestSuite: true,
restartOnFileChange: true,
Expand Down

0 comments on commit cc4d8a8

Please sign in to comment.