Skip to content

v1.2.0

Choose a tag to compare

@stevez stevez released this 11 Mar 23:37
· 22 commits to main since this release
5c38ebf

[1.2.0] - 2026-03-11

Added

  • transformUrl option for collectClientCoverage - Optional callback to rewrite coverage entry URLs before filtering and saving. Useful for non-Vite environments (e.g., Chrome extensions) where source URLs don't match the expected http://localhost/src/... pattern.

    await collectClientCoverage(page, testInfo, use, {
      transformUrl: (url) => {
        if (!url.startsWith('chrome-extension://')) return url;
        return pathToFileURL(path.join(distDir, new URL(url).pathname)).href;
      },
    })
  • file:// URL support in filterAppCoverage - Coverage entries with file:// URLs are now accepted by the app coverage filter, enabling coverage collection from Chrome extensions and other local file sources.