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

Doesn't work with harmony proxies #29

Closed dphaener closed 8 years ago

dphaener commented 8 years ago

This is more of a call for help rather than an issue. I have a testing library that I use that uses harmony proxies. It looks like this needs to be enabled, but I haven't figured out how to run the coverage with harmony proxies enabled. Any ideas?

jeffrifwald commented 8 years ago

Babel doesn't and can't support proxies due to the limitations of ES5. You'll likely have to wait until istanbul itself can cover proxies, which might be a long while.

jeffrifwald commented 8 years ago

Just for reference: https://babeljs.io/docs/learn-es2015/#proxies

dphaener commented 8 years ago

Yeah, I know that Babel doesn't support it. Thought maybe there might be some way to run coverage with node --harmony-proxies. If not, ah well.

jeffrifwald commented 8 years ago

I actually don't see why istanbul itself wouldn't work with proxies since there is not special syntax involved. Have you actually tried running coverage with node and harmony proxies?

dphaener commented 8 years ago

I've tried, but I fear that I don't have the syntax correct.