gotwarlost / 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
8.7k stars 787 forks source link

Issue with HTML code coverage output when using OR operator for assignment #772

Open johnnadratowski opened 7 years ago

johnnadratowski commented 7 years ago

A picture is worth a thousand words:

image

You can see here, I don't have the assignment of the || 1 covered, but the highlighting basically extends from there through the rest of the file, even though the rest is covered. Makes reading these reports super confusing.

May be related to https://github.com/jmcriffey/babel-istanbul/issues/56