0

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.

1 Answer 1

0

Finally, /* v8 ignore next */ worked.

Using coverage-v8 for coverage.

Not the answer you're looking for? Browse other questions tagged or ask your own question.