Files
0pt/vitest.config.ts
SIAX Foundation Bot 844220d9f5
CI (SIAX Cloud) / security (push) Failing after 28s
CI (SIAX Cloud) / quality (push) Failing after 38s
feat(foundation): Wave 3 integrity/persistence/build fixes
2026-07-25 13:54:36 +02:00

24 lines
782 B
TypeScript

import { defineConfig } from "vitest/config";
import { fileURLToPath } from "node:url";
import path from "node:path";
// `@/…` maps to the repo root, matching tsconfig.json's `paths` (`@/*` -> `./*`),
// so tests can `import { X } from "@/src/services/…"` exactly as the app code does.
const rootDir = path.dirname(fileURLToPath(import.meta.url));
export default defineConfig({
resolve: {
alias: {
"@": rootDir,
},
},
test: {
// P0 capability tests. Node environment (these are backend service/adapter
// tests, no DOM). The `.realinfra.` test self-skips when its live backend
// is unreachable — see tests/p0/iceberg-write-service.realinfra.test.ts.
include: ["tests/**/*.test.ts"],
environment: "node",
globals: false,
},
});