Skip to content
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

feature request: ignore file with comment #740

Open
bdwain opened this issue Dec 28, 2016 · 8 comments
Open

feature request: ignore file with comment #740

bdwain opened this issue Dec 28, 2016 · 8 comments

Comments

@bdwain
Copy link

bdwain commented Dec 28, 2016

i have a file that i don't want to test. it contains a bunch of expressions and it would be nicer to just have one comment at the top of the file instead of multiple /* istanbul ignore next */

@vinimdocarmo
Copy link

+1

@semi-sentient
Copy link

I would love to see this as well. I have a React app and don't need to test my connected components, so this would be a nice way to skip those.

@franciscop-invast
Copy link

Proposed: /* istanbul ignore */

@arthurxavierx
Copy link

arthurxavierx commented Jun 1, 2018

/* istanbul ignore file */ works.

@franciscop-invast
Copy link

thank you @arthurxavierx

@Ross-Esmond
Copy link

/* istanbul ignore file */ should definitely be added to ignoring-code-for-coverage.

jrop added a commit to jrop/istanbul that referenced this issue Jun 13, 2018
See gotwarlost#740 for more context.  I had to look explicitly for this functionality before I found it documented in the issue tracker.
@ericsoco
Copy link

ericsoco commented Sep 19, 2018

/* istanbul ignore file */ didn't work for me, and looking in the source it looks like it shouldn't...?

UPDATE: I was on [email protected], updating to nyc@13 got this working.

@YuCJ
Copy link

YuCJ commented Jun 1, 2022

/* istanbul ignore file */ is added to the document of istanbuljs/nyc.
See: https://github.com/istanbuljs/nyc#parsing-hints-ignoring-lines

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants