puppeteer/website/versioned_docs/version-22.8.1/api/puppeteer.jscoverageoptions.md
release-please[bot] 042d61030c
chore: release main (#12415)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2024-05-13 08:49:32 +00:00

115 lines
1.3 KiB
Markdown

---
sidebar_label: JSCoverageOptions
---
# JSCoverageOptions interface
Set of configurable options for JS coverage.
#### Signature:
```typescript
export interface JSCoverageOptions
```
## Properties
<table><thead><tr><th>
Property
</th><th>
Modifiers
</th><th>
Type
</th><th>
Description
</th><th>
Default
</th></tr></thead>
<tbody><tr><td>
<span id="includerawscriptcoverage">includeRawScriptCoverage</span>
</td><td>
`optional`
</td><td>
boolean
</td><td>
Whether the result includes raw V8 script coverage entries.
</td><td>
</td></tr>
<tr><td>
<span id="reportanonymousscripts">reportAnonymousScripts</span>
</td><td>
`optional`
</td><td>
boolean
</td><td>
Whether anonymous scripts generated by the page should be reported.
</td><td>
</td></tr>
<tr><td>
<span id="resetonnavigation">resetOnNavigation</span>
</td><td>
`optional`
</td><td>
boolean
</td><td>
Whether to reset coverage on every navigation.
</td><td>
</td></tr>
<tr><td>
<span id="useblockcoverage">useBlockCoverage</span>
</td><td>
`optional`
</td><td>
boolean
</td><td>
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.
</td><td>
</td></tr>
</tbody></table>