Run tests with coverage
npm i bare-cov
// Record coverage until current process ends and then generate reports
require('bare-cov')(options)
Coverage reporter(s) to use (default: ['text', 'json']
)
Options to pass to each reporter keyed by reporter (default: {}
)
Directory to write coverage reports to (default: coverage
)
Skip saving of raw v8 coverage data to disk (default: false
)
Apache-2.0