2022-08-06 14:49:20 +00:00
|
|
|
---
|
|
|
|
sidebar_label: JSCoverage.start
|
|
|
|
---
|
|
|
|
|
|
|
|
# JSCoverage.start() method
|
|
|
|
|
2022-10-24 14:23:24 +00:00
|
|
|
**Signature:**
|
2022-08-06 14:49:20 +00:00
|
|
|
|
|
|
|
```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>
|