diff --git a/jest-puppeteer.config.js b/jest-puppeteer.config.js index 2b52db1..f338c68 100644 --- a/jest-puppeteer.config.js +++ b/jest-puppeteer.config.js @@ -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}`, diff --git a/jest.config.js b/jest.config.js index 3c4bc5d..5b3bb39 100644 --- a/jest.config.js +++ b/jest.config.js @@ -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 };