Skip to content

Commit

Permalink
chore: fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge committed Aug 17, 2024
1 parent 0ed8236 commit 45e16db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/jest-environment-puppeteer/src/browsers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ import type { PuppeteerNode, Browser } from "puppeteer";

const getPuppeteer = (): PuppeteerNode => {
try {
// eslint-disable-next-line @typescript-eslint/no-require-imports
return require("puppeteer");
} catch (e) {
} catch {
// eslint-disable-next-line @typescript-eslint/no-require-imports
return require("puppeteer-core");
}
};
Expand Down

0 comments on commit 45e16db

Please sign in to comment.