puppeteer/website/versioned_docs/version-19.1.0/api/puppeteer.jscoverageoptions.md

23 lines
2.1 KiB
Markdown
Raw Normal View History

---
sidebar_label: JSCoverageOptions
---
# JSCoverageOptions interface
Set of configurable options for JS coverage.
**Signature:**
```typescript
export interface JSCoverageOptions
```
## Properties
2022-10-14 12:54:46 +00:00
| Property | Modifiers | Type | Description |
| -------------------------------------------------------------------------------------- | --------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [includeRawScriptCoverage?](./puppeteer.jscoverageoptions.includerawscriptcoverage.md) | | boolean | <i>(Optional)</i> Whether the result includes raw V8 script coverage entries. |
| [reportAnonymousScripts?](./puppeteer.jscoverageoptions.reportanonymousscripts.md) | | boolean | <i>(Optional)</i> Whether anonymous scripts generated by the page should be reported. |
| [resetOnNavigation?](./puppeteer.jscoverageoptions.resetonnavigation.md) | | boolean | <i>(Optional)</i> Whether to reset coverage on every navigation. |
| [useBlockCoverage?](./puppeteer.jscoverageoptions.useblockcoverage.md) | | boolean | <i>(Optional)</i> 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. |