github-pages-deploy-action/node_modules/collect-v8-coverage
2020-03-21 17:13:25 -04:00
..
CHANGELOG.md Dependencies Required 2020-01-28 00:07:56 -05:00
index.d.ts Dependencies Required 2020-01-28 00:07:56 -05:00
index.js Dependencies Required 2020-01-28 00:07:56 -05:00
LICENSE Dependencies Required 2020-01-28 00:07:56 -05:00
package.json Release 2020-03-21 17:13:25 -04:00
README.md Dependencies Required 2020-01-28 00:07:56 -05:00

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();