chore: setup vitest

This commit is contained in:
Ilia Mashkov
2026-01-06 12:21:33 +03:00
parent 3a3d6ec577
commit ffad76a4c0
8 changed files with 667 additions and 10 deletions

View File

@@ -15,7 +15,12 @@
"format": "dprint fmt",
"format:check": "dprint check",
"test:e2e": "playwright test",
"test": "npm run test:e2e",
"test:unit": "vitest run",
"test:unit:watch": "vitest",
"test:unit:ui": "vitest --ui",
"test:unit:coverage": "vitest run --coverage",
"test:component": "vitest run --config vitest.config.component.ts",
"test": "npm run test:e2e && npm run test:unit",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build"
},
@@ -31,12 +36,16 @@
"@storybook/svelte-vite": "^10.1.11",
"@sveltejs/vite-plugin-svelte": "^6.2.1",
"@tailwindcss/vite": "^4.1.18",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/svelte": "^5.3.1",
"@tsconfig/svelte": "^5.0.6",
"@types/jsdom": "^27",
"@vitest/browser-playwright": "^4.0.16",
"@vitest/coverage-v8": "^4.0.16",
"bits-ui": "^2.14.4",
"clsx": "^2.1.1",
"dprint": "^0.50.2",
"jsdom": "^27.4.0",
"lefthook": "^2.0.13",
"oxlint": "^1.35.0",
"playwright": "^1.57.0",
@@ -50,6 +59,7 @@
"tw-animate-css": "^1.4.0",
"typescript": "^5.9.3",
"vite": "^7.2.6",
"vitest": "^4.0.16"
"vitest": "^4.0.16",
"vitest-browser-svelte": "^2.0.1"
}
}