feature request: ignore file with comment
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 */
+1
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.
Proposed: /* istanbul ignore */
/* istanbul ignore file */ works.
thank you @arthurxavierx
/* istanbul ignore file */ should definitely be added to ignoring-code-for-coverage.
/* 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.
/* istanbul ignore file */ is added to the document of istanbuljs/nyc.
See: https://github.com/istanbuljs/nyc#parsing-hints-ignoring-lines