Bubbit / wct-istanbub

11 stars 5 forks source link

Load source maps #23

Closed nimatt closed 5 years ago

nimatt commented 5 years ago

I am currently using wct-istanbub to measure code coverage on Polymer components written using TypeScript. This works well with the drawback that it is measured on the JavaScript files instead of the TypeScript sources.

This change checks for a sourceMappingUrl comment on the file and loads it if possible so that the result can be mapped to the source files.

Bubbit commented 5 years ago

@jimivdw Sure

@nimatt Thanks for the PR !