Branch Coverage Calculation changed in Jest v30? #15733
SchroederSteffen
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We noticed in several typescript-based projects that the branch coverage is calculated differently somehow in Jest v30 compared to v29.
I couldn't pin-point and create a minimal reproduction yet. My reproduction works the same in v29 for some reason.
In most cases it seems to be around (not) going into a not-existing
else
branch of anif
.Seems like an
if
withoutelse
was considered only a single branch before?It was also mentioned here: thymikee/jest-preset-angular#3152 (comment)
I welcome the change (assuming that I got it correctly), but I would like to understand through which change/PR it came in.
Is this known?
Beta Was this translation helpful? Give feedback.
All reactions