You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(condition1){action1();}else/* istanbul ignore else */if(condition2){action2();}else{actionDefault();}
When if (condition1) is processed the else action is converted to a block. This results in the following code (not including actual coverage counters:
if(condition1){action1();}else/* istanbul ignore else */{if(condition2){action2();}else{actionDefault();}}
Due to this separation between the hint and the if (condition2) the ignore else does not get processed. When the else is converted to a block we need to move the comment into the new block so it can be seen by the (no longer chained) if statement. I have this fixed in a local branch, I just need to create a test before submitting.
The text was updated successfully, but these errors were encountered:
When
if (condition1)
is processed theelse
action is converted to a block. This results in the following code (not including actual coverage counters:Due to this separation between the hint and the
if (condition2)
the ignore else does not get processed. When theelse
is converted to a block we need to move the comment into the new block so it can be seen by the (no longer chained) if statement. I have this fixed in a local branch, I just need to create a test before submitting.The text was updated successfully, but these errors were encountered: