/** * Test env setup. Import this FIRST in any test file so env vars are set * before module-level env validations fire on import. * * Bun's test runner set NODE_ENV=test automatically; Deno does not, so we set * it here. `./env` validates RESEND_API_KEY at module load and snapshots * NODE_ENV, so both have to be in place before `./client` or `./send` load. */ process.env.NODE_ENV = "test"; process.env.RESEND_API_KEY ??= "test-key";