Yet another JS code coverage tool that computes statement, line, function and branch coverage with module loader hooks to transparently add coverage when running tests. Supports all JS coverage use cases including unit tests, server side functional tests and browser tests. Built for scale.
Other
8.7k
stars
786
forks
source link
How to Ignore all class or function calls in coverage #918
In my angular project I use an instance of a logger that can be:
this.logger.log()this.logger.warn() or this.logger.error()
I want to be able to say to jest/istanbul coverage "please ignore all the logger calls" without the need to write manually /* istanbul ignore next */ in all my files and logger calls.
Is it possible? I wasn't able to find anything related.
In my angular project I use an instance of a logger that can be:
this.logger.log()
this.logger.warn()
orthis.logger.error()
I want to be able to say to jest/istanbul coverage "please ignore all the logger calls" without the need to write manually
/* istanbul ignore next */
in all my files and logger calls.Is it possible? I wasn't able to find anything related.