import { defineConfig } from "vitest/config"; export default defineConfig({ test: { clearMocks: true, environment: "node", include: ["src/**/*.test.{ts,tsx}"], coverage: { include: ["src/**/*.{ts,tsx}"], thresholds: { lines: 58, functions: 54, branches: 80, statements: 57, autoUpdate: (threshold, previous) => Math.max(previous, Math.floor(threshold) - 1), }, }, }, });