shuffle puppeteer no-sandbox flag around

This commit is contained in:
ochafik 2025-03-25 23:56:02 +00:00
commit e413b191be
2 changed files with 5 additions and 10 deletions

View file

@ -1,6 +1,10 @@
module.exports = {
launch: {
headless: process.env.CI === "true",
args: [
// https://chromium.googlesource.com/chromium/src/+/main/docs/security/apparmor-userns-restrictions.md#what-if-i-dont-have-root-access-to-the-machine-and-cant-install-anything
'--no-sandbox',
],
},
server: {
command: `npm run start:${process.env.NODE_ENV}`,

View file

@ -3,14 +3,5 @@ module.exports = {
testMatch: [
"**/tests/**/*.js",
],
globals: {
'jest-puppeteer': {
launch: {
args: [
// https://chromium.googlesource.com/chromium/src/+/main/docs/security/apparmor-userns-restrictions.md#what-if-i-dont-have-root-access-to-the-machine-and-cant-install-anything
'--no-sandbox',
],
}
}
},
// Browser launch arguments are now defined in jest-puppeteer.config.js
};