Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>istanbul ignore code snippetsNew to Visual Studio Code? Get it now.
istanbul ignore code snippets

istanbul ignore code snippets

Ben Stoyer

|
746 installs
| (1) | Free
Code snippets for istanbul coverage ignore comments.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

istanbul-ignore-code-snippets README

This extension provides code snippet for istanbul code coverage library which is also used with jest. The snippets are used to get comments to exclude files or lines from your code coverage.

Usage

These are the shortcuts to generate a comment:

ingore

/* istanbul ignore <insert_type> reason: <insert_reason> */

ingorenext

/* istanbul ignore next reason: <insert_reason> */

ingoreif

/* istanbul ignore if reason: <insert_reason> */

ingoreelse

/* istanbul ignore else reason: <insert_reason> */

Documentation on what these comments do you can find on the offical instanbul documentation.

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft