Skip to content

Commit e413b19

Browse files
author
ochafik
committed
shuffle puppeteer no-sandbox flag around
1 parent 400b840 commit e413b19

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

jest-puppeteer.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
module.exports = {
22
launch: {
33
headless: process.env.CI === "true",
4+
args: [
5+
// 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
6+
'--no-sandbox',
7+
],
48
},
59
server: {
610
command: `npm run start:${process.env.NODE_ENV}`,

jest.config.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,5 @@ module.exports = {
33
testMatch: [
44
"**/tests/**/*.js",
55
],
6-
globals: {
7-
'jest-puppeteer': {
8-
launch: {
9-
args: [
10-
// 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
11-
'--no-sandbox',
12-
],
13-
}
14-
}
15-
},
6+
// Browser launch arguments are now defined in jest-puppeteer.config.js
167
};

0 commit comments

Comments
 (0)