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
Missing branch coverage in typescript async method #291
Comments
From what you're showing this line should be considered both a branch |
I created a repo with reproduction: https://github.com/RoniSegal/missing-branch-coverage. |
Any updates on this? |
@RoniSegal as Corey mentioned we need to see a minimal reproduction in a public repo. Then we can help investigate. |
@JaKXz https://github.com/RoniSegal/missing-branch-coverage was provided - the link is easy to miss in @RoniSegal's comment from two days ago. |
@JaKXz sorry for that, I updated the comment and now its more clear |
There is an update on this issue? |
@RoniSegal I just tried your repo:
Got the following error:
Please fix this error, once the test is working someone can take a look. Keep in mind this issue will require someone with knowledge of both istanbul and TypeScript, so it may take longer to get help. Any updates will be posted here. One other suggestion, take a look at @istanbuljs/nyc-config-typescript. |
@coreyfarrell Just updated my repo, it missed npm run build. |
I'm able to reproduce this issue now. I checked the the |
@coreyfarrell thanks for looking into it, should i open a new issue and point it to |
This comment has been minimized.
This comment has been minimized.
@coreyfarrell Seems that |
@RoniSegal that is correct, I got mixed up for some reason thought this was reported against nyc. |
Any updates on this? |
@RoniSegal Sorry there is not, source maps issues are very difficult. If any updates are available they will be posted here. |
Hi Guys, |
I have the bellow method written in typescript and transpiled to es5:
.
The transpiled code is:
The source map data for
points to line 126
Expected Behavior
line 126 should considered as branch
Observed Behavior
line 126 considered as statement
The text was updated successfully, but these errors were encountered: