-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test coverage shows untransformed output #614
Comments
I encounter exactly the same problem with babel transformer. It output the post-transform code, and just add information on original line and filename as a tooltip. That is said, it's not really the behaviour a user expect from that kind of report. @geek, do you already have plan in mind ? I'll be glad to do a PR to improve that. |
@feugy no plan in mind from me, please do fix with a PR if you have the time. Thanks! |
Also interested in a fix for this. |
Dear @garthk , How did you ended using to that configuration? I looked through the entire internet to find how to test typescript code with lab and I didn't find any information. Thank god you have opened this issue. Regarding the coverage report, I'm getting coverage information of the compilled code. Using es6 as target instead of es5 would definitely help to get a closer view of the source. Have you noticed that the issue you referenced microsoft/TypeScript#7980 has been closed? |
Yep! |
Why have you closed this issue? is it resolved ? |
It's written on the close event. |
The close event being -> |
@danielo515 I'll be glad to have someone else testing this, so if you can run it against your codebase, any feedback will be appreciated. |
Sure @feugy , |
Version 13 is not released yet, you'll have to test it from master. |
v13.0.0 is now published! Here are the release notes: #684 |
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions. |
lab -T test/lib/transform-tsc.js test -v -S -c -r html -o cov.html
produces a coverage file with:index.ts
in the navigation bar and code coverage report headerslab -T test/lib/transform-tsc.js test -v -S
with a failing test produces correct line numbers for pre-transformed code.Reproduction repository:
garthk/lab-coverage-vs-sourcemaps-typescript-edition
See also: #338
I'm hoping this is a configuration problem, in which case I'm happy to have pitched in with typings for
code
andlab
and a skeleton project for anyone trying to drive them from TypeScript and Visual Studio Code.The text was updated successfully, but these errors were encountered: