Yet another JS code coverage tool that computes statement, line, function and branch coverage with module loader hooks to transparently add coverage when running tests. Supports all JS coverage use cases including unit tests, server side functional tests and browser tests. Built for scale.
Reproducing
let {a:b = null} = {a: 'hello'};
console.log('Here is OK'); assert(b === 'hello');
require('../modules/module');
npm test
works fine, butnpm run coverage
fails withIf I comment
let {a:b = null} = {a: 'hello'};
in module.js, then it will be OK.I hate this syntax, but it works in real life outside of istanbul.
ENV
node: 6.9.1 npm: 3.10.8 istanbul: 0.4.5 mocha: 3.4.2