We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e37e2f7 commit 74cff7dCopy full SHA for 74cff7d
src/global-hooks.ts
@@ -3,6 +3,7 @@ import puppeteer from 'puppeteer'
3
const globalSetup = async () => {
4
;(global as any).browser = await puppeteer.launch({
5
executablePath: process.env.CHROME_EXECUTABLE_PATH,
6
+ args: (process.env.CHROME_EXECUTABLE_PATH || '').split(' ').filter(Boolean),
7
})
8
process.env.PUPPETEER_WS_ENDPOINT = (global as any).browser.wsEndpoint()
9
}
src/puppeteer.ts
@@ -8,6 +8,9 @@ const loadPage = async () => {
: puppeteer.launch({
10
11
+ args: (process.env.CHROME_EXECUTABLE_PATH || '')
12
+ .split(' ')
13
+ .filter(Boolean),
14
}))
15
16
const page = await browser.newPage()
0 commit comments