Files
initiative/vitest.config.ts
Lukas a97044ec3e Add tests for useActionBarState hook
Tests search/suggestion filtering, queued creature counting, form
submission with custom stats, browse mode, and dismiss/clear behavior.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-29 00:16:54 +01: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: 72,
branches: 55,
},
"apps/web/src/components": {
lines: 52,
branches: 49,
},
"apps/web/src/components/ui": {
lines: 83,
branches: 74,
},
},
},
},
});