28 lines
831 B
TypeScript
28 lines
831 B
TypeScript
import { defineConfig } from "vitest/config";
|
|
import { fileURLToPath } from "node:url";
|
|
import path from "node:path";
|
|
|
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
// CVDIAG backend instrumentation unit tests (L1-E). The integration's
|
|
// broader suite is Playwright e2e (`test:e2e`); this config scopes vitest
|
|
// to the co-located cvdiag unit tests so they run without the Next.js
|
|
// build toolchain.
|
|
include: [
|
|
"src/cvdiag-backend.test.ts",
|
|
"src/cvdiag-backend-persist.e2e.test.ts",
|
|
],
|
|
// The live-PB e2e seam needs room to boot PocketBase + drain flush windows.
|
|
testTimeout: 30_000,
|
|
hookTimeout: 30_000,
|
|
environment: "node",
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
});
|