test: implement tests

This commit is contained in:
2026-02-05 04:09:47 +05:00
parent 150975faf9
commit 0c3c97914e
10 changed files with 4395 additions and 1957 deletions
+30
View File
@@ -0,0 +1,30 @@
import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
environment: "jsdom",
globals: true,
// Remove setupFiles temporarily to test basic functionality
coverage: {
provider: "v8",
reporter: ["text", "json", "html"],
exclude: ["node_modules/**", ".svelte-kit/**", "tests/**", "*.config.ts", "*.config.js", "static/**"],
thresholds: {
global: {
branches: 80,
functions: 80,
lines: 80,
statements: 80,
},
},
},
},
resolve: {
alias: {
$lib: "/src/lib",
$components: "/src/components",
$stores: "/src/stores",
$services: "/src/services",
},
},
});