* adds components test setup

* add some ui tests
This commit is contained in:
tmshv authored and GitHub committed 2026-02-08 03:49:06 +07:00
1 parent 7cce0bedb7
commit 79ab798f12
8 files changed
+496

No files matched your search

+6
View File
@@ -2,6 +2,9 @@ import { defineConfig } from "vitest/config"
import path from "path"
export default defineConfig({
esbuild: {
jsx: "automatic",
},
resolve: {
alias: {
"@": path.resolve(__dirname, "src"),
@@ -10,5 +13,8 @@ export default defineConfig({
},
test: {
include: ["src/**/*.test.{ts,tsx}"],
environment: "happy-dom",
setupFiles: ["./vitest.setup.tsx"],
css: true,
},
})