Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 48s
20 lines
729 B
TypeScript
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.');
|
|
}
|