// Vitest does not read .env on its own. import 'dotenv/config'; /** * Points the integration tests at their own database. * * They truncate every table, so they must never run against the development * database. When TEST_DATABASE_URL is unset the tests skip themselves rather * than quietly destroying whatever DATABASE_URL happens to point at. */ if (process.env.TEST_DATABASE_URL) { process.env.DATABASE_URL = process.env.TEST_DATABASE_URL; }