Skip to content

Commit

Permalink
Add test coverage analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
ajuvonen committed May 7, 2024
1 parent adcd0fb commit 39b927b
Show file tree
Hide file tree
Showing 3 changed files with 208 additions and 3 deletions.
199 changes: 199 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"build-only": "vite build",
"type-check": "vue-tsc --build --force",
"lint": "eslint . --ext .vue,.js,.ts --ignore-path .gitignore",
"format": "prettier --write src/"
"format": "prettier --write src/",
"coverage": "vitest run --coverage"
},
"dependencies": {
"@mdi/js": "^7.4.47",
Expand Down Expand Up @@ -43,6 +44,7 @@
"@types/node": "^20.12.10",
"@types/uuid": "^9.0.8",
"@vitejs/plugin-vue": "^5.0.4",
"@vitest/coverage-istanbul": "^1.6.0",
"@vue/eslint-config-prettier": "^9.0.0",
"@vue/eslint-config-typescript": "^13.0.0",
"@vue/test-utils": "^2.4.6",
Expand Down
8 changes: 6 additions & 2 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ export default mergeConfig(
deps: {
inline: ['vuetify'],
},
}
},
coverage: {
provider: 'istanbul',
include: ['src/**/*'],
},
},
})
}),
);

0 comments on commit 39b927b

Please sign in to comment.