Istanbul's text reporter but with smarter output; Doesn't print a table if there are no files to print.
If you use the @electrovir/nyc
fork of nyc
or the @electrovir/c8
fork of c8
and provide the failBelow
config value then when any lines are printed, the reporter fails the process so that you can use the checkCoverage: false
option and eliminate extraneous console.error
logging from. Example.
npm i -D istanbul-smart-text-reporter
// c8.config.js
module.exports = {
reporter: 'istanbul-smart-text-reporter',
};
ncy --reporter istanbul-smart-text-reporter