puppeteer/docs/api/puppeteer.jscoverageoptions.md
jrandolf f07ad2c661
fix: update documentation on configuring puppeteer (#9150)
This PR updates the docs regarding configuring puppeteer. In addition,
some changes have been made to the documentation generator to show
default values on the documentation site.

Also fixes: https://github.com/puppeteer/puppeteer/pull/9144
2022-10-24 09:07:05 +02:00

2.2 KiB

sidebar_label
JSCoverageOptions

JSCoverageOptions interface

Set of configurable options for JS coverage.

Signature:

export interface JSCoverageOptions

Properties

Property Modifiers Type Description Default
includeRawScriptCoverage? boolean (Optional) Whether the result includes raw V8 script coverage entries.
reportAnonymousScripts? boolean (Optional) Whether anonymous scripts generated by the page should be reported.
resetOnNavigation? boolean (Optional) Whether to reset coverage on every navigation.
useBlockCoverage? boolean (Optional) Whether to collect coverage information at the block level. If true, coverage will be collected at the block level (this is the default). If false, coverage will be collected at the function level.