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