challenge-algorithms-v2.0-s.../node_modules/collect-v8-coverage
2022-10-27 15:51:35 -03:00
..
CHANGELOG.md feat: Resolve o exercício 01-greeting 2022-10-27 15:51:35 -03:00
index.d.ts feat: Resolve o exercício 01-greeting 2022-10-27 15:51:35 -03:00
index.js feat: Resolve o exercício 01-greeting 2022-10-27 15:51:35 -03:00
LICENSE feat: Resolve o exercício 01-greeting 2022-10-27 15:51:35 -03:00
package.json feat: Resolve o exercício 01-greeting 2022-10-27 15:51:35 -03:00
README.md feat: Resolve o exercício 01-greeting 2022-10-27 15:51:35 -03: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();