diff --git a/next-ui/.gitignore b/next-ui/.gitignore index fa41f88ee..4f504ff8a 100644 --- a/next-ui/.gitignore +++ b/next-ui/.gitignore @@ -27,3 +27,4 @@ src/i18n *storybook.log storybook-static +coverage diff --git a/next-ui/package.json b/next-ui/package.json index afc13c8d0..3ee8b6100 100644 --- a/next-ui/package.json +++ b/next-ui/package.json @@ -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", diff --git a/next-ui/vite.config.mts b/next-ui/vite.config.mts index e9ba562cd..bfca53df1 100644 --- a/next-ui/vite.config.mts +++ b/next-ui/vite.config.mts @@ -87,6 +87,9 @@ export default defineConfig({ }, }, test: { + coverage: { + reporter: ['text', 'json-summary', 'json', 'html'], + }, projects: [ { extends: true,