Skip to content

Commit

Permalink
fix: test headless Puppeteer Browser only (coherent) Nouvelle initial…
Browse files Browse the repository at this point in the history
…isation de l'application #47
  • Loading branch information
hrenaud committed Aug 29, 2024
1 parent c2613db commit cdaf9d9
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,15 @@ export const initPuppeteerBrowserIsInstalled = async (
const executablePath = `${homedir}/.cache/puppeteer/chrome-headless-shell/${platform}_${arch}-127.0.6533.119`
// mainLog.debug(`executablePath`, executablePath)
// eslint-disable-next-line @typescript-eslint/no-var-requires
const browser = await puppeteer.launch()
const browser = await puppeteer.launch({
headless: true,
args: [
'--disable-gpu',
'--disable-dev-shm-usage',
'--disable-setuid-sandbox',
'--no-sandbox',
],
})
const puppeterVersion = await (await browser.newPage())
.browser()
.version()
Expand Down

0 comments on commit cdaf9d9

Please sign in to comment.