Skip to content

Commit

Permalink
feat: puppeteer config
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorShadurin committed Jan 15, 2024
1 parent 62791b2 commit 14596ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
1 change: 1 addition & 0 deletions jest-puppeteer.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { executablePath } = require('puppeteer')
console.log('executablePath', executablePath())
module.exports = {
launch: {
dumpio: true, // Forwards browser console into test console for easier debugging
Expand Down
7 changes: 1 addition & 6 deletions puppeteer.config.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
// const executablePath = `/usr/bin/${process.env.PUPPETEER_EXEC_PATH}`
// eslint-disable-next-line @typescript-eslint/no-var-requires
// const { executablePath } = require('puppeteer')
// eslint-disable-next-line no-console
// console.log('process.env.PUPPETEER_EXEC_PATH', executablePath)
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { join } = require('path')

/**
* @type {import("puppeteer").Configuration}
*/
module.exports = {
// Changes the cache location for Puppeteer.
cacheDirectory: join(__dirname, '.cache', 'puppeteer-data'),
skipDownload: false,
// executablePath: executablePath(),
}

0 comments on commit 14596ac

Please sign in to comment.