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 ab3d73c commit ceda802
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions puppeteer.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// eslint-disable-next-line no-console
console.log('process.env.PUPPETEER_EXEC_PATH', process.env.PUPPETEER_EXEC_PATH)
/**
* @type {import("puppeteer").Configuration}
*/
module.exports = {
// Changes the cache location for Puppeteer.
// cacheDirectory: join(__dirname, '.cache', 'puppeteer-data'),
executablePath: process.env.PUPPETEER_EXEC_PATH,
}
1 change: 1 addition & 0 deletions tsconfig.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"jest.config.ts",
".eslintrc.js",
"jest-puppeteer.config.js",
"puppeteer.config.js",
],
"compilerOptions": {
"noEmit": true,
Expand Down

0 comments on commit ceda802

Please sign in to comment.