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

"// @flow weak" causes "branch not covered" error #80

Open gabor opened 7 years ago

gabor commented 7 years ago

i'm using Flow in my javascript files, so i have either // @flow weak or // @flow at the top of my files. if i use // @flow then all is fine. but if i use // @flow weak then in the coverage-report, the first character of the flow-weak-line (the / character) is marked with yellow color, the popup says "branch not covered". any idea what is happening?

dhlavaty commented 7 years ago

+1

Same here, but it has a good side also. You are forced to flow annotate your code. :-)

But yeah, it is quite annoying.