Skip to content

Commit

Permalink
print/vitest.config.ts: exclude .nuxt folder from coverage measurement
Browse files Browse the repository at this point in the history
There are files with a lot of lines we should not cover with our tests.
This leads to a repository coverage value of 7%.
This commit should improve that.
  • Loading branch information
BacLuc committed Nov 14, 2023
1 parent 366752a commit 8d3076e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion print/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
// vitest.config.ts
import { defineConfig } from 'vitest/config'
import { defineConfig, configDefaults } from 'vitest/config'

export default defineConfig({
test: {
coverage: {
all: true,
exclude: [...(configDefaults.coverage.exclude || []), '**/.nuxt/**'],
reporter: ['text', 'lcov', 'html'],
reportsDirectory: './coverage',
},
Expand Down

0 comments on commit 8d3076e

Please sign in to comment.