Skip to content

Commit

Permalink
Chore: adjust coverage settings
Browse files Browse the repository at this point in the history
Adjusts code coverage settings, specifically what is excluded from
coverage, based on the updated Vitest version. Also removes a file that
has 0 coverage but doesn't seem to be used anywhere :)

RISDEV-0000
  • Loading branch information
andreasphil committed Dec 18, 2023
1 parent 30b46dd commit 8b2614f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
6 changes: 0 additions & 6 deletions frontend/src/enum/enumUpdateStatus.ts

This file was deleted.

20 changes: 20 additions & 0 deletions frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,26 @@ export default defineConfig({
],
coverage: {
reporter: ["lcov"],
exclude: [
// Configuration and generated outputs
"**/[.]**",
"coverage/**/*",
"dist/**/*",
"**/.*rc.{?(c|m)js,yml}",
"*.config.{js,ts}",

// Types
"**/*.d.ts",

// Tests
"test/**/*",

// App content we're not interested in covering with unit tests
"src/routes/**/*",
"src/kitchensink/**/*",
"src/App.vue",
"src/main.ts",
],
},
},
define: {
Expand Down

0 comments on commit 8b2614f

Please sign in to comment.