Skip to content

Commit

Permalink
frontend/vitest.config.ts: exclude src/pdf folder from coverage measu…
Browse files Browse the repository at this point in the history
…rement

There are files with a lot of lines we should not cover with our tests.
This commit should improve that.
  • Loading branch information
BacLuc committed Nov 14, 2023
1 parent 366752a commit 728c986
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import * as path from 'path'
import { VuetifyResolver } from 'unplugin-vue-components/resolvers'
import Components from 'unplugin-vue-components/vite'
import { sentryVitePlugin } from '@sentry/vite-plugin'
import { configDefaults } from 'vitest/config'

const plugins = [
comlink(), // must be first
Expand Down Expand Up @@ -151,6 +152,7 @@ export default defineConfig(({ mode }) => ({
setupFiles: './tests/setup.js',
coverage: {
all: true,
exclude: [...configDefaults.coverage.exclude, '**/src/pdf/**'],
reporter: ['text', 'lcov', 'html'],
reportsDirectory: './data/coverage',
},
Expand Down

0 comments on commit 728c986

Please sign in to comment.