freshyo/apps/backend/tests/setup.ts
2026-09-26 17:50:33 +05:30

10 lines
274 B
TypeScript

/**
* Loads the API test environment (credentials + base URL) before the suites run.
*
* tests/.env is git-ignored. Copy tests/.env.example and fill it in.
*/
import path from 'path'
import dotenv from 'dotenv'
dotenv.config({ path: path.resolve(__dirname, '.env') })