-
Notifications
You must be signed in to change notification settings - Fork 91
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
c8 ignore next
comment does not quite appropriately compensate for branches
#254
Comments
Even simpler reproduction: return true;
/* c8 ignore next */
console.log('never runs'); |
thanks @Trott 👍 will try to get to this in the not too distant future 🚀 |
this should be fixed in |
unfortunately this caused a regression with TypeScript, tldr; source maps are the worst. |
NOOOOOOOOoooooooooooo,,,,....!!!!! |
@Trott wow, it too me this long to get to this message in my inbox 😆 I have a cunning plan, I was thinking we could perhaps check if the covered range is only 1 character, at which point I think it's a good indicator I've detected a I'll play with this soon. |
Given this code in
index.js
:Running with
ci node index.js
, I get this output:I would expect the branches to all be considered covered since the entire uncovered branch is excluded by the
c8 ignore
comment.The text was updated successfully, but these errors were encountered: