diff --git a/puppeteer.config.js b/puppeteer.config.js new file mode 100644 index 00000000..bfb0076a --- /dev/null +++ b/puppeteer.config.js @@ -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, +} diff --git a/tsconfig.test.json b/tsconfig.test.json index 516840a8..7b852143 100644 --- a/tsconfig.test.json +++ b/tsconfig.test.json @@ -6,6 +6,7 @@ "jest.config.ts", ".eslintrc.js", "jest-puppeteer.config.js", + "puppeteer.config.js", ], "compilerOptions": { "noEmit": true,