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
{{ message }}
This repository was archived by the owner on Dec 8, 2024. It is now read-only.
We use TypeScript which is compiled to JavaScript. Unfortunately, the typescript compiler removes any 'floating' comments, even with all comment-preservation compiler options on.
Unfortunately, the /* istanbul ignore next */ comment often occurs 'floating', e.g. above a case statement.
Of course this issue should really be fixed in TypeScript but that is simply not happening. Therefore, would it be an idea to introduce a /* istanbul ignore block */ comment that I can insert e.g. INSIDE a case statement so that it is not floating?
If it does not require too much refactoring I'd be happy to take a few hints from you and implement this myself.
switch(boo){case1: {flep();}break;case2: {/* istanbul ignore block Ignore this entire case */baz();}break;}
The text was updated successfully, but these errors were encountered:
I believe I wanted to do something like this in my original implementation but gave up because of performance reasons. In particular, figuring out whether the comment occurs just after the block starts might be tricky.
Need to look at the code again. It's been awhile since I made changes to the instrumenter.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
We use TypeScript which is compiled to JavaScript. Unfortunately, the typescript compiler removes any 'floating' comments, even with all comment-preservation compiler options on.
Unfortunately, the /* istanbul ignore next */ comment often occurs 'floating', e.g. above a case statement.
Of course this issue should really be fixed in TypeScript but that is simply not happening. Therefore, would it be an idea to introduce a /* istanbul ignore block */ comment that I can insert e.g. INSIDE a case statement so that it is not floating?
If it does not require too much refactoring I'd be happy to take a few hints from you and implement this myself.
The text was updated successfully, but these errors were encountered: