Skip to content

Commit

Permalink
Ignore collecting coverage within the function for the browser
Browse files Browse the repository at this point in the history
  • Loading branch information
yhatt committed Jan 15, 2025
1 parent 8b02833 commit 1fb8595
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/converter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -671,9 +671,11 @@ export class Converter {

// Wait for next frame (In parallel rendering, it may be needed to wait for the first rendering)
await page.evaluate(async () => {
/* c8 ignore start */
await new Promise<void>((resolve) =>
window.requestAnimationFrame(() => resolve())
)
/* c8 ignore end */
})
}

Expand Down

0 comments on commit 1fb8595

Please sign in to comment.