c8
c8 copied to clipboard
Ignore statements not working correctly for barrel/index files
- Version: v16.13.1
- Platform: Linux 5.10.60.1-microsoft-standard-WSL2
As the title states, I found an issue with ignore statements in barrel/index files that just re-export other modules. Coverage gets reported incorrectly and the ignore comments actually add statements to the file. Also, I think /* c8 ignore file */
would be nice 😊
Example repo: beyerleinf/c8-barrel-test - just run npm t
and open coverage/index.html
.
I don't believe this behavior was ever implemented in v8-to-istanbul
.
In case it matters, I just noticed that this also happens for files that only contain interfaces - which is pretty annoying 😄
I have the same issue.
Same here

i have the 'interface-only' issue, any workarounds?