vitest coverage

This commit is contained in:
Gauthier Roebroeck 2025-06-30 13:43:46 +08:00
parent e89bc3741e
commit d31fdce5c0
3 changed files with 6 additions and 0 deletions

1
next-ui/.gitignore vendored
View file

@ -27,3 +27,4 @@ src/i18n
*storybook.log
storybook-static
coverage

View file

@ -9,7 +9,9 @@
"preview": "vite preview",
"build-only": "vite build",
"test": "vitest run",
"test:coverage": "vitest run --coverage",
"test:unit": "vitest run --project unit",
"test:unit:coverage": "vitest run --project unit --coverage",
"test:unit:watch": "vitest watch --project unit",
"test:storybook": "vitest run --project storybook",
"type-check": "vue-tsc --build --force",

View file

@ -87,6 +87,9 @@ export default defineConfig({
},
},
test: {
coverage: {
reporter: ['text', 'json-summary', 'json', 'html'],
},
projects: [
{
extends: true,