|
hace 1 mes | |
---|---|---|
.. | ||
CHANGELOG.md | hace 1 mes | |
LICENSE | hace 1 mes | |
README.md | hace 1 mes | |
index.d.ts | hace 1 mes | |
index.js | hace 1 mes | |
package.json | hace 1 mes |
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();