I have code that has multiple if
statements but no corresponding else
statements. I have been adding /* istanbul ignore else */
individually for all these if
statements in order to ignore the corresponding missing else
blocks. Is there are way to ignore all the missing else
statement?
Per the current Istanbul documentation:
The way to ignore an "else path" coverage is: (/* istanbul ignore else */
In Ideas for Later the author is considering adding " "default-excludes": true,"
to the configuration file.
BOTTOM LINE:
it appears that in the current version, you must add /* istanbul ignore else */
to each block you wish to exclude.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With