2022-08-06 14:49:20 +00:00
|
|
|
---
|
|
|
|
sidebar_label: JSCoverage.start
|
|
|
|
---
|
|
|
|
|
|
|
|
# JSCoverage.start() method
|
|
|
|
|
|
|
|
**Signature:**
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
class JSCoverage {
|
|
|
|
start(options?: {
|
|
|
|
resetOnNavigation?: boolean;
|
|
|
|
reportAnonymousScripts?: boolean;
|
|
|
|
includeRawScriptCoverage?: boolean;
|
2022-10-14 12:54:46 +00:00
|
|
|
useBlockCoverage?: boolean;
|
2022-08-06 14:49:20 +00:00
|
|
|
}): Promise<void>;
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
2022-10-14 12:54:46 +00:00
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --------- | ---------------------------------------------------------------------------------------------------------------------------------- | ----------------- |
|
|
|
|
| options | { resetOnNavigation?: boolean; reportAnonymousScripts?: boolean; includeRawScriptCoverage?: boolean; useBlockCoverage?: boolean; } | <i>(Optional)</i> |
|
2022-08-06 14:49:20 +00:00
|
|
|
|
|
|
|
**Returns:**
|
|
|
|
|
|
|
|
Promise<void>
|