File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import puppeteer from 'puppeteer'
33const globalSetup = async ( ) => {
44 ; ( global as any ) . browser = await puppeteer . launch ( {
55 executablePath : process . env . CHROME_EXECUTABLE_PATH ,
6- args : ( process . env . CHROME_EXECUTABLE_PATH || '' ) . split ( ' ' ) . filter ( Boolean ) ,
6+ args : ( process . env . CHROME_ARGS || '' ) . split ( ' ' ) . filter ( Boolean ) ,
77 } )
88 process . env . PUPPETEER_WS_ENDPOINT = ( global as any ) . browser . wsEndpoint ( )
99}
Original file line number Diff line number Diff line change @@ -8,9 +8,7 @@ const loadPage = async () => {
88 } )
99 : puppeteer . launch ( {
1010 executablePath : process . env . CHROME_EXECUTABLE_PATH ,
11- args : ( process . env . CHROME_EXECUTABLE_PATH || '' )
12- . split ( ' ' )
13- . filter ( Boolean ) ,
11+ args : ( process . env . CHROME_ARGS || '' ) . split ( ' ' ) . filter ( Boolean ) ,
1412 } ) )
1513
1614 const page = await browser . newPage ( )
You can’t perform that action at this time.
0 commit comments