Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,6 @@ packages/desktop/src-tauri/gen/

# Drafts from scripts/pr-evidence.sh
PR_BODY.md

# Test coverage
coverage
2 changes: 2 additions & 0 deletions packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"lint": "biome check src/",
"lint:fix": "biome check --write src/",
"test": "vitest run --passWithNoTests",
"test:coverage": "vitest run --coverage",
"test:e2e": "playwright test",
"generate:api": "openapi-typescript openapi.json -o src/api/schema.d.ts"
},
Expand Down Expand Up @@ -54,6 +55,7 @@
"@types/react": "catalog:",
"@types/react-dom": "catalog:",
"@vitejs/plugin-react": "catalog:",
"@vitest/coverage-v8": "catalog:",
"jsdom": "catalog:",
"openapi-typescript": "^7.8.0",
"typescript": "catalog:",
Expand Down
21 changes: 21 additions & 0 deletions packages/web/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,26 @@ export default defineConfig({
css: false,
include: ["src/**/*.{test,spec}.{ts,tsx}"],
exclude: ["node_modules", "dist", "e2e"],
coverage: {
provider: "v8",
reporter: ["text", "html", "json-summary", "lcov"],
include: ["src/**/*.{ts,tsx}"],
exclude: [
"src/**/*.{test,spec}.{ts,tsx}",
"src/test/**",
"src/routeTree.gen.ts",
"src/api/schema.d.ts",
"src/main.tsx",
"src/vite-env.d.ts",
],
// Truthful baseline floor measured on main (not copied from the
// fork). Ratchet upward as feature tests grow.
thresholds: {
lines: 18,
functions: 10,
branches: 10,
statements: 17,
},
},
},
});
Loading
Loading