Istanbul instruments your ES5 and ES2015+ JavaScript code with line counters, so that you can track how well your unit-tests exercise your codebase.
The nyc command-line-client for Istanbul works well with most JavaScript testing frameworks: tap, mocha, AVA, etc.
Adding coverage to your mocha tests could not be easier
Now, simply place the command nyc in front of your existing test command, for example:
{
"scripts": {
"test": "nyc mocha"
}
}
Istanbul instruments your ES5 and ES2015+ JavaScript code with line counters,\nso that you can track how well your unit-tests exercise your codebase.\n
The nyc command-line-client for Istanbul\nworks well with most JavaScript testing frameworks:\ntap,\nmocha,\nAVA,\netc.\n#Features\n