aoc/node_modules/collect-v8-coverage
alex ab688f8b38 solutions 2022-12-03 17:11:42 -05:00
..
CHANGELOG.md solutions 2022-12-03 17:11:42 -05:00
LICENSE solutions 2022-12-03 17:11:42 -05:00
README.md solutions 2022-12-03 17:11:42 -05:00
index.d.ts solutions 2022-12-03 17:11:42 -05:00
index.js solutions 2022-12-03 17:11:42 -05:00
package.json solutions 2022-12-03 17:11:42 -05:00

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