// Any setup scripts you might need go here // Load .env files import "dotenv/config"; import { resolveTestDatabaseUri } from "./tests/test-db"; // Tests never touch the development database: every payload connection in the // test process targets the dedicated test database (see tests/test-db.ts). // Must run before any test file imports the Payload config. process.env.DATABASE_URI = resolveTestDatabaseUri();