Files
flyer-crawler.projectium.com/global-setup.ts
Torben Sorensen 1d0bd630b2
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 48s
test, more id fixes, and naming all files
2025-11-25 05:59:56 -08:00

20 lines
729 B
TypeScript

// global-setup.ts
/**
* This function is executed once before all tests.
* It assumes the database is already running and connection details are
* provided via environment variables (e.g., in a CI/CD environment).
*/
export async function setup() {
console.log('\nPreparing for database integration tests...');
// In this configuration, we expect the test runner's environment (e.g., the Gitea runner)
// to have the necessary DB connection environment variables set (DB_HOST, DB_USER, etc.).
// The db.ts service will pick them up automatically.
}
/**
* This function is executed once after all tests have completed.
*/
export async function teardown() {
console.log('Database integration tests finished.');
}