Files
initiative/vitest.config.ts
Lukas b229a0dac7 Add missing component and hook tests, raise coverage thresholds
13 new test files for untested components (color-palette, player-management,
stat-block, settings-modal, export/import dialogs, bulk-import-prompt,
source-fetch-prompt, player-character-section) and hooks (use-long-press,
use-swipe-to-dismiss, use-bulk-import, use-initiative-rolls). Expand
combatant-row tests with inline editing, HP popover, and condition picker.

Component coverage: 59% → 80% lines, 55% → 71% branches
Hook coverage: 72% → 83% lines, 55% → 66% branches

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-29 23:55:21 +02:00

44 lines
822 B
TypeScript

import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
include: ["packages/*/src/**/*.test.ts", "apps/*/src/**/*.test.{ts,tsx}"],
passWithNoTests: true,
coverage: {
provider: "v8",
enabled: true,
exclude: ["**/dist/**"],
thresholds: {
"packages/domain/src": {
lines: 98,
branches: 96,
},
"packages/application/src": {
lines: 96,
branches: 90,
},
"apps/web/src/adapters": {
lines: 68,
branches: 56,
},
"apps/web/src/persistence": {
lines: 85,
branches: 70,
},
"apps/web/src/hooks": {
lines: 83,
branches: 66,
},
"apps/web/src/components": {
lines: 80,
branches: 71,
},
"apps/web/src/components/ui": {
lines: 93,
branches: 90,
},
},
},
},
});