chore: calculate code coverage
This commit is contained in:
@@ -106,7 +106,9 @@ export async function puppeteerRunTest(opts: Partial<TestOptions>, hostUrl: stri
|
||||
await cb(page);
|
||||
}
|
||||
const htmlHandle = await page.$('html');
|
||||
const html = await page.evaluate(html => html?.outerHTML ?? html?.innerHTML, htmlHandle);
|
||||
const html = await page.evaluate( // potentially trips up Jest's code coverage, hence the istanbul ignore
|
||||
/* istanbul ignore next */html => html?.outerHTML ?? html?.innerHTML, htmlHandle
|
||||
);
|
||||
|
||||
// Add the final html
|
||||
output.html = html || '';
|
||||
|
||||
Reference in New Issue
Block a user