import { fileURLToPath } from "node:url"; import { defineConfig } from "vitest/config"; const root = fileURLToPath(new URL(".", import.meta.url)); export default defineConfig({ resolve: { alias: { "@": root } }, test: { environment: "node", include: ["src/**/*.spec.ts", "tests/unit/**/*.spec.ts"], passWithNoTests: false, coverage: { provider: "v8", // The functional core: pure logic lives in src/domain and must be fully covered. include: ["src/domain/**/*.ts"], exclude: ["src/domain/**/*.spec.ts"], reporter: ["text", "json-summary", "html"], reportsDirectory: "reports/coverage", thresholds: { lines: 100, functions: 100, branches: 100, statements: 100, }, }, }, });