import { defineConfig } from "vitest/config"; import { fileURLToPath, URL } from "node:url"; export default defineConfig({ resolve: { alias: { "@": fileURLToPath(new URL("./src", import.meta.url)), }, }, test: { environment: "node", include: ["tests/**/*.test.ts"], clearMocks: true, restoreMocks: true, coverage: { provider: "v8", reporter: ["text", "lcov"], reportsDirectory: "coverage", include: ["src/**/*.ts"], exclude: ["src/main.ts", "src/**/index.ts", "src/**/*.types.ts", "src/types/**"], }, }, });