shuffle puppeteer no-sandbox flag around
This commit is contained in:
parent
400b840e55
commit
e413b191be
2 changed files with 5 additions and 10 deletions
|
|
@ -1,6 +1,10 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
launch: {
|
launch: {
|
||||||
headless: process.env.CI === "true",
|
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: {
|
server: {
|
||||||
command: `npm run start:${process.env.NODE_ENV}`,
|
command: `npm run start:${process.env.NODE_ENV}`,
|
||||||
|
|
|
||||||
|
|
@ -3,14 +3,5 @@ module.exports = {
|
||||||
testMatch: [
|
testMatch: [
|
||||||
"**/tests/**/*.js",
|
"**/tests/**/*.js",
|
||||||
],
|
],
|
||||||
globals: {
|
// Browser launch arguments are now defined in jest-puppeteer.config.js
|
||||||
'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',
|
|
||||||
],
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue