zlwu dd667101ef first commit hai 1 ano
..
CHANGELOG.md dd667101ef first commit hai 1 ano
LICENSE dd667101ef first commit hai 1 ano
README.md dd667101ef first commit hai 1 ano
index.d.ts dd667101ef first commit hai 1 ano
index.js dd667101ef first commit hai 1 ano
package.json dd667101ef first commit hai 1 ano

README.md

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