urltomarkdown/node_modules/collect-v8-coverage
Lee Hanken 209908a1dc update dependencies, include additional CORS header 2024-04-22 12:47:34 +01:00
..
CHANGELOG.md update dependencies, include additional CORS header 2024-04-22 12:47:34 +01:00
LICENSE update dependencies, include additional CORS header 2024-04-22 12:47:34 +01:00
README.md update dependencies, include additional CORS header 2024-04-22 12:47:34 +01:00
index.d.ts update dependencies, include additional CORS header 2024-04-22 12:47:34 +01:00
index.js update dependencies, include additional CORS header 2024-04-22 12:47:34 +01:00
package.json update dependencies, include additional CORS header 2024-04-22 12:47:34 +01:00

README.md

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