database expansion prior to creating on server - also error cleanup, some logging - DONE now for testing hehehe
Some checks are pending
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Has started running
Some checks are pending
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Has started running
This commit is contained in:
18
global-setup.ts
Normal file
18
global-setup.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* 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.');
|
||||
}
|
||||
Reference in New Issue
Block a user