mirror of
https://github.com/ets-cfuhrman-pfe/EvalueTonSavoir.git
synced 2025-08-11 21:23:54 -04:00
12 lines
353 B
JavaScript
12 lines
353 B
JavaScript
|
|
// This file sets up Jest's environment before tests run
|
||
|
|
|
||
|
|
// Tell Jest to use our mock for the database
|
||
|
|
jest.mock('./config/db');
|
||
|
|
|
||
|
|
// After all tests complete
|
||
|
|
afterAll(async () => {
|
||
|
|
// Allow time for any async operations to complete
|
||
|
|
await new Promise(resolve => setTimeout(resolve, 500));
|
||
|
|
console.log('Tests completed, cleaned up resources');
|
||
|
|
});
|