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

Dependencies (0)

    Dev Dependencies (8)

    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