puppeteer/website/versioned_docs/version-22.10.0/api/puppeteer.jscoverageoptions.md
release-please[bot] d963fcdd80
chore: release main (#12456)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2024-05-24 07:26:52 +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>