rangement/node_modules/collect-v8-coverage
2023-07-01 12:46:34 +02:00
..
CHANGELOG.md add packages and scripts in package.json 2023-07-01 12:46:34 +02:00
index.d.ts add packages and scripts in package.json 2023-07-01 12:46:34 +02:00
index.js add packages and scripts in package.json 2023-07-01 12:46:34 +02:00
LICENSE add packages and scripts in package.json 2023-07-01 12:46:34 +02:00
package.json add packages and scripts in package.json 2023-07-01 12:46:34 +02:00
README.md add packages and scripts in package.json 2023-07-01 12:46:34 +02: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();