tree: 47195a3536efc05eb96538eefc0245eb127fd028 [path history] [tgz]
  1. CHANGELOG.md
  2. index.d.ts
  3. index.js
  4. LICENSE
  5. package.json
  6. README.md
node_modules/collect-v8-coverage/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();