bcoe / bcoe/c8

Ignore statements not working correctly for barrel/index files

Open
#359 5 comments 4 reactions 0 assignees View on GitHub
feature-request
Dominant language
JavaScript
Stars
2.1k
Forks
99
PR merge metrics
No merged PRs in 30d

Description

* **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 😊

![image](https://user-images.githubusercontent.com/12174762/153735020-6b0cb1ed-700f-4738-963c-ea82e5c2f7b3.png)

Example repo: [beyerleinf/c8-barrel-test](https://github.com/beyerleinf/c8-barrel-test) - just run `npm t` and open `coverage/index.html`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.