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 34e68f5 commit 77d73d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jest-puppeteer.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { executablePath } = require('puppeteer')
console.log('executablePath', executablePath())
// const { executablePath } = require('puppeteer')
// console.log('executablePath', executablePath())
module.exports = {
launch: {
dumpio: true, // Forwards browser console into test console for easier debugging
headless: 'new', // Opt-in to the new headless mode for Chrome
executablePath: executablePath(),
// executablePath: executablePath(),
},
}
2 changes: 2 additions & 0 deletions puppeteer.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ const { join } = require('path')
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { executablePath } = require('puppeteer')

// eslint-disable-next-line no-console
console.log('pre executablePath2')
// eslint-disable-next-line no-console
console.log('executablePath2', executablePath())

Expand Down

0 comments on commit 77d73d1

Please sign in to comment.