jeffrifwald / babel-istanbul

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.
Other
144 stars 23 forks source link

Branch not covered #82

Closed droooney closed 7 years ago

droooney commented 7 years ago

ES6 default values are not highlighted when not covered. Example:

const {
  a = 2
} = { a: 1 };

Istanbul shows that 1 branch isn't covered (Branches 0/1). But there's no yellow highlighting (html reports).

Not sure if it's related to babel-istanbul or to the reporter I use (I use karma-coverage).

droooney commented 7 years ago

Sorry, it's related to the reporter for sure. Closing this.