Istanbul Annotations

There may be some sections of your code base that you want to purposely exclude from coverage tracking, for this you can use the following parsing suggestions:

/* istanbul ignore if */: ignore the next if statement.

/* istanbul ignore else */: ignore the else portion of an if statement.

/* istanbul ignore next */: ignore the next thing in the source-code ( functions, if statements, classes, you name it).

/* istanbul ignore file */: ignore an entire source-file (this should be placed at the top of the file).

Last updated