collect-v8-coverage
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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();

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    11,604,352
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    11,604,352
  • 1.0.1
    7,097,361
  • 1.0.0
    185,531

Package Sidebar

Install

npm i collect-v8-coverage

Weekly Downloads

18,887,244

Version

1.0.2

License

MIT

Unpacked Size

5.14 kB

Total Files

6

Last publish

Collaborators

  • simenb