Skip to main content
stopCoverage - node__v8.d.ts - Node documentation
function stopCoverage

Usage in Deno

```typescript import { stopCoverage } from "node:node__v8.d.ts"; ```
stopCoverage(): void
The `v8.stopCoverage()` method allows the user to stop the coverage collection started by `NODE_V8_COVERAGE`, so that V8 can release the execution count records and optimize code. This can be used in conjunction with [takeCoverage](../.././node__v8.d.ts/~/takeCoverage) if the user wants to collect the coverage on demand.

Return Type

void