feat: enforce frontend quality guardrails

This commit is contained in:
2026-08-24 13:07:14 +03:00
parent 826936c6a4
commit 1fc269adec
18 changed files with 542 additions and 42 deletions
+15 -4
View File
@@ -1,14 +1,25 @@
import { fileURLToPath, URL } from "node:url";
import react from "@vitejs/plugin-react";
import { defineConfig } from "vitest/config";
import { configDefaults, defineConfig } from "vitest/config";
export default defineConfig({
plugins: [react()],
resolve: { alias: { "@": fileURLToPath(new URL("./src", import.meta.url)) } },
test: {
environment: "jsdom",
exclude: [...configDefaults.exclude, "scripts/**/*.test.mjs"],
setupFiles: "./src/test/setup.ts",
coverage: { reporter: ["text", "html"] },
coverage: {
all: true,
include: ["src/**/*.{ts,tsx}"],
exclude: ["src/test/**", "src/**/*.test.{ts,tsx}"],
reporter: ["text", "html"],
thresholds: {
statements: 82,
branches: 75,
functions: 75,
lines: 83,
},
},
},
});
import { fileURLToPath, URL } from "node:url";