diff --git a/e2e/utils/fixtures.ts b/e2e/utils/fixtures.ts index 44449bd3..f7127e07 100644 --- a/e2e/utils/fixtures.ts +++ b/e2e/utils/fixtures.ts @@ -19,7 +19,7 @@ const OUTPUT_DIR = path.resolve(process.cwd(), ".nyc_output"); * Reads the istanbul coverage object (injected by vite-plugin-istanbul) from the * given page. Returns `null` when the page has not been instrumented. */ -export async function readCoverage(page: Page): Promise { +async function readCoverage(page: Page): Promise { try { return await page.evaluate(() => (window as unknown as { __coverage__?: unknown }).__coverage__ ?? null); } catch {