unit tests fixin
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 1m37s

This commit is contained in:
2025-11-22 11:05:43 -08:00
parent 200e85b714
commit 774555adc7
6 changed files with 31 additions and 15 deletions

View File

@@ -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();
}