test: ≥95% coverage — daemon 96.9% (go), web 95.5-99% (vitest 142 tests); store.ts hooks-order crash fix

This commit is contained in:
Raphael Westphal
2026-08-18 14:56:08 +02:00
parent ecb91e941c
commit 0ecef2a9bd
30 changed files with 6305 additions and 54 deletions
+31 -10
View File
@@ -1,17 +1,38 @@
/// <reference types="vitest/config" />
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
const DEV_PROXY_TARGET: string = "http://localhost:8686";
export default defineConfig({
plugins: [react()],
build: {
outDir: "dist",
},
server: {
proxy: {
"/api": DEV_PROXY_TARGET,
"/ws": { target: DEV_PROXY_TARGET, ws: true },
},
},
plugins: [react()],
build: {
outDir: "dist",
},
server: {
proxy: {
"/api": DEV_PROXY_TARGET,
"/ws": { target: DEV_PROXY_TARGET, ws: true },
},
},
test: {
environment: "jsdom",
globals: true,
setupFiles: ["./src/test/setup.ts"],
css: false,
pool: "forks",
fileParallelism: false,
coverage: {
provider: "v8",
include: ["src/**/*.{ts,tsx}"],
exclude: ["src/**/*.test.*", "src/test/**"],
reporter: ["text", "html"],
thresholds: {
lines: 95,
branches: 95,
functions: 95,
statements: 95,
},
},
},
});