peach a19a732be8 commit message | 2 years ago | |
---|---|---|
.. | ||
CHANGELOG.md | 2 years ago | |
LICENSE | 2 years ago | |
README.md | 2 years ago | |
index.d.ts | 2 years ago | |
index.js | 2 years ago | |
package.json | 2 years ago |
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();