5e1207338c
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>
21 lines
388 B
TypeScript
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,
|
|
},
|
|
},
|
|
},
|
|
});
|