Skip to content

Commit

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

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

Expand Down

0 comments on commit daf2145

Please sign in to comment.