test: configure vitest to run only unit tests

This commit is contained in:
ramvignesh-b
2026-04-15 13:15:47 +05:30
parent 87dd1fd1f5
commit 9f42012494
+2 -1
View File
@@ -9,6 +9,7 @@ export default defineConfig({
env: {
VITE_API_URL: "http://piku-server",
},
include: ["**/*.test.ts"],
environment: "jsdom",
globals: true,
setupFiles: ["./test/setup.ts"],
@@ -16,7 +17,7 @@ export default defineConfig({
provider: "v8",
reporter: ["text", "html"],
include: ["**/*.ts", "**/*.tsx"],
exclude: ["node_modules", "dist", "**/*.d.ts", "./test/**"],
exclude: ["node_modules", "dist", "**/*.d.ts", "./test/**", "./e2e/**"],
thresholds: { lines: 80, functions: 80, branches: 80 },
},
},