Istanbul: feature request: ignore file with comment

Created on 28 Dec 2016  路  7Comments  路  Source: gotwarlost/istanbul

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

Most helpful comment

/* istanbul ignore file */ works.

All 7 comments

+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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dcrockwell picture dcrockwell  路  37Comments

dankohn picture dankohn  路  25Comments

gbahamondezc picture gbahamondezc  路  24Comments

graemej picture graemej  路  22Comments

niftylettuce picture niftylettuce  路  29Comments