OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

How to ignore lines of code from coverage in vitest?

  • Thread starter Thread starter Techno Verse
  • Start date Start date
T

Techno Verse

Guest
I have my unit tests setup with vitest and I am looking for a way to ignore specific lines of code from vitest coverage.

Looking for something similar to /* istanbul ignore next */.

Is there something available for vitest?

I skimmed through the docs and tried googling. Found the solution for jest but not vitest.

<p>I have my unit tests setup with vitest and I am looking for a way to ignore specific lines of code from vitest coverage.</p>
<p>Looking for something similar to <code>/* istanbul ignore next */</code>.</p>
<p>Is there something available for vitest?</p>
<p>I skimmed through the docs and tried googling. Found the solution for jest but not vitest.</p>
 

Online statistics

Members online
0
Guests online
3
Total visitors
3
Top