Irina Glushko 2389e7160b HW1 done | 3 vuotta sitten | |
---|---|---|
.. | ||
CHANGELOG.md | 3 vuotta sitten | |
LICENSE | 3 vuotta sitten | |
README.md | 3 vuotta sitten | |
index.d.ts | 3 vuotta sitten | |
index.js | 3 vuotta sitten | |
package.json | 3 vuotta sitten |
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();