-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
This isn't an issue per-se, but in case anyone needs to include all iframes in their coverage numbers, you can modify the context script as follows:
for (const page of context.pages()) {
await page.evaluate(() =>
(window as any).collectIstanbulCoverage(JSON.stringify((window as any).__coverage__))
);
for (const frame of context.frames()) {
await frame.evaluate(() =>
(window as any).collectIstanbulCoverage(JSON.stringify((window as any).__coverage__))
);
}
}Metadata
Metadata
Assignees
Labels
No labels