unit tests fixin
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 1m37s
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 1m37s
This commit is contained in:
@@ -2,6 +2,7 @@ import { exec } from 'child_process';
|
||||
import { setup as globalSetup } from './global-setup';
|
||||
import { pingBackend } from '../../services/apiClient';
|
||||
import { logger } from '../../services/logger';
|
||||
import { pool } from '../../services/db/connection';
|
||||
|
||||
export async function setup() {
|
||||
console.log('\n--- Running Integration Test Setup ---');
|
||||
@@ -59,4 +60,7 @@ export async function setup() {
|
||||
|
||||
export async function teardown() {
|
||||
console.log('--- Integration Test Teardown ---');
|
||||
// Close the database connection pool after all integration tests have run.
|
||||
// This prevents the "hanging-process" error.
|
||||
await pool.end();
|
||||
}
|
||||
Reference in New Issue
Block a user