import { defineConfig } from "vitest/config"; import path from "node:path"; // Runs against a local Supabase instance (`npx supabase start`, then // `node --env-file=.env.test.local supabase/seed.ts` once) — see // docs/security.md and README.md "Tests" section for the full setup. These // tests exercise real RLS policies and RPC functions; they intentionally do // not run against the hosted project. export default defineConfig({ test: { environment: "node", include: ["tests/integration/**/*.test.ts"], testTimeout: 20000, hookTimeout: 20000, fileParallelism: false, }, resolve: { alias: { "@": path.resolve(__dirname, "."), }, }, });