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

correctly ignore functions that are not part of the source file #12

Closed Swatinem closed 9 years ago

Swatinem commented 9 years ago

babel generates getter functions for re-exports: http://babeljs.io/repl/#?code=export%20{foo%2C%20bar}%20from%20%22foobar%22

Those were not correctly ignored and lead to some missing coverage in my project and I had to investigate :-)

jeffrifwald commented 9 years ago

Thanks for this, I was actually just about to look into this problem too.