Skip to content

Commit

Permalink
Update puppeteer
Browse files Browse the repository at this point in the history
  • Loading branch information
mahozad committed Nov 22, 2023
1 parent 461dfb0 commit 8852dc7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -15,7 +15,7 @@
"jest-html-reporter": "^3.7.0",
"jest-puppeteer": "^6.2.0",
"jest-junit": "^15.0.0",
"puppeteer-core": "^19.4.1"
"puppeteer": "^21.5.2"
},
"scripts": {
"test": "jest --env=node --colors test",
Expand Down
5 changes: 2 additions & 3 deletions test/main.test.js
Expand Up @@ -8,7 +8,7 @@
* @jest-environment jsdom
*/

const puppeteer = require("puppeteer-core");
const puppeteer = require("puppeteer");
const fileSystem = require("fs");
// See https://stackoverflow.com/a/48952855/8583692
const { configureToMatchImageSnapshot: configureSnapshots } = require("jest-image-snapshot");
Expand Down Expand Up @@ -487,8 +487,7 @@ async function takeScreenshot(
*/
function launchBrowser() {
return puppeteer.launch({
headless: true,
executablePath: chromiumPath
headless: true
});
}

Expand Down

0 comments on commit 8852dc7

Please sign in to comment.