Skip to content

Commit

Permalink
Fix c8 ignore range
Browse files Browse the repository at this point in the history
  • Loading branch information
yhatt committed Oct 9, 2024
1 parent b85362a commit 04dffdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/jpeg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ export const png2jpegViaPuppeteer = async (

const jpegDataURL = await page.evaluate(
async (pngUri, q, timeout) => {
/* c8 ignore start */
// This function is executed outside of Jest's scope so we have to ignore coverage.
// https://jestjs.io/docs/puppeteer
/* c8 ignore start */
const canvas = document.createElement('canvas')
const ctx = canvas.getContext('2d')
if (!ctx)
Expand Down

0 comments on commit 04dffdf

Please sign in to comment.