Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

collect-v8-coverage

SimenB98.3mMIT1.0.2TypeScript support: included

Use this module to start and stop the V8 inspector manually and collect precise coverage.

readme

collect-v8-coverage

Use this module to start and stop the V8 inspector manually and collect precise coverage.

const {CoverageInstrumenter} = require('collect-v8-coverage');

const instrumenter = new CoverageInstrumenter();

await instrumenter.startInstrumenting();

// require some modules, run some code

const coverage = await instrumenter.stopInstrumenting();

changelog

1.0.2 (2023-07-05)

Bug Fixes

  • workaround for networked filesystems on Windows (#174) (4de72ea)

1.0.1 (2020-04-02)

Bug Fixes

  • link to repo from package.json (cf54d65)

1.0.0 (2019-12-16)

Features