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

Source-map branch outputting error messages for ES6 default export syntax #751

Open drawyan opened 7 years ago

drawyan commented 7 years ago

In the source-map branch, file "lib/source-map-transformer.js" line 262, console.error is outputting to the console when the source javascript files have ES6 default export syntax* and/or no unit test associated. Could we remove this error message since we are using text-summary in the console for coverage information and it takes too much spaces for these warnings?

Also do you have a plan to merge the source-map branch into master? Thank you!

*Details on the ES6 default export syntax causing the error messages: export default {...} will have the error while if we change it to const temp = {...}; export default temp is fine.