test: update tests

This commit is contained in:
2026-02-05 04:12:12 +05:00
parent 0c3c97914e
commit c71e8b8b4a
8 changed files with 156 additions and 49 deletions
+2 -23
View File
@@ -1,30 +1,9 @@
import { sveltekit } from "@sveltejs/kit/vite";
import { defineConfig } from "vitest/config";
export default defineConfig({
plugins: [sveltekit()],
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",
},
},
});