Adds missing tests for undoUseCase, redoUseCase, and setTempHpUseCase, bringing application layer coverage from ~81% to 97%. Removes autoUpdate from coverage thresholds and sets floors to actual values so they enforce a real minimum. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
44 lines
822 B
TypeScript
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: 59,
|
|
branches: 41,
|
|
},
|
|
"apps/web/src/components": {
|
|
lines: 49,
|
|
branches: 47,
|
|
},
|
|
"apps/web/src/components/ui": {
|
|
lines: 73,
|
|
branches: 67,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
});
|