added availability

This commit is contained in:
2026-05-01 18:24:09 -04:00
parent ed7cae1acd
commit 036512f590
22 changed files with 8313 additions and 4 deletions

10
test/setup.ts Normal file
View File

@@ -0,0 +1,10 @@
import { config } from "dotenv";
import path from "node:path";
config({ path: path.resolve(process.cwd(), ".env.test"), override: true });
if (!process.env.DATABASE_URL?.includes("touchbase_test")) {
throw new Error(
`Refusing to run tests against non-test database. DATABASE_URL=${process.env.DATABASE_URL}`,
);
}