Vitest: how to exclude directory from coverage report?

Viewed 12

How to exclude a directory from coverage report in vitest?

I'm looking for something like coveragePathIgnorePatterns option as it was in jest:

coveragePathIgnorePatterns: [
    '<rootDir>/src/foo.ts',
    '<rootDir>/src/bar.ts',
     ....
  ],

How could I do that in vitest.config.ts?

0 Answers
Related