This repository has been archived on 2026-05-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
app/apps/api/vitest.config.ts
T
Scrubs McBarkley 5e1207338c fix: resolve @groombook/db source in vitest config
Add resolve alias so vitest can resolve @groombook/db from source
TypeScript files without requiring a prior build step. Fixes CI
test failures when dist/ has not been compiled.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-20 02:37:06 +00:00

21 lines
388 B
TypeScript

import { defineConfig } from "vitest/config";
import path from "path";
export default defineConfig({
resolve: {
alias: {
"@groombook/db": path.resolve(__dirname, "../../packages/db/src/index.ts"),
},
},
test: {
coverage: {
provider: "v8",
include: ["src/lib/**"],
thresholds: {
lines: 80,
functions: 80,
},
},
},
});