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
"E" is not showing in the HTML reporter for "implicit else" branches after https://github.com/istanbuljs/istanbuljs/pull/633 #649
Comments
@gareth-smyth thank you for the bug report 👍 @adrian-burlacu-software any thoughts on this one? |
I can confirm we have the same issue. The generated json is correct, showing "0" lines covered for missing The [E] (Else branch not covered) is not showing for implicit else only. If we add a simple @gareth-smyth this is the exact same issue. The generated JSON, showing that we indeed are missing coverage for the "Else" branch: But when we open the reporter, unfortunately this is not showing at all like it used to: |
@bcoe Kind regards, |
@bcoe |
@adrian-burlacu-software 👍 thank you for starting to dig into this. I felt the recent additions to the library have added more value than this bug detracts, but would be nice to fix 😄 |
@gareth-smyth Ok, fix was released in istanbul-reports 3.1.4. This issue is good to close :) |
@adrian-burlacu-software thanks for fixing this 👍 |
Expected Behavior: how should things be working?
When an "implicit else" statement is not covered the HTML reporter should show an "E" to the left of the "if" statement.
Observed Behavior: what did you observe happening instead?
The heading correctly shows that a branch is not covered but the branch is not highlighted in the code view.
Code: provide a repository, or snippet of code, that reproduces the bug.
** Configuration **
Node v14.17.2
NPM 6.14.13
Running Jest 27.3.1
** Quick analysis **
If I revert the change from this PR #633 it seems to work correctly.
Thanks,
Gareth
The text was updated successfully, but these errors were encountered: