test: add 100% coverage for apps/api and packages/types

Adds full Vitest test suites with @vitest/coverage-v8, targeting 100%
statement/branch/function/line coverage. Uses v8 ignore comments for
genuinely unreachable defensive branches.
This commit is contained in:
2026-03-07 19:59:48 -08:00
committed by Naomi Carrigan
parent 5d2d71983a
commit b67eae9d46
39 changed files with 4277 additions and 8 deletions
+6 -1
View File
@@ -5,7 +5,12 @@ export default defineConfig({
coverage: {
provider: "v8",
include: ["src/**/*.ts"],
exclude: ["src/types/**/*.ts"],
exclude: [
"src/types/**/*.ts",
"src/db/client.ts",
"src/index.ts",
"src/data/materials.ts",
],
thresholds: {
statements: 100,
branches: 100,