Skip to content

Commit

Permalink
fix(coverage) keep covarge on navigation, i.e. delete project navigat…
Browse files Browse the repository at this point in the history
…es and clears all previous pages covered

Signed-off-by: David Edler <david.edler@canonical.com>
  • Loading branch information
edlerd committed Feb 26, 2024
1 parent d78b5ff commit 58ee478
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/fixtures/coverage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ export const startCoverage = async (
if (!hasCoverage) {
return;
}
await page.coverage.startJSCoverage();
await page.coverage.startJSCoverage({
reportAnonymousScripts: true,
resetOnNavigation: false,
});
};

export const finishCoverage = async (
Expand Down

0 comments on commit 58ee478

Please sign in to comment.