EvalueTonSavoir/server/jest.setup.js

12 lines
353 B
JavaScript
Raw Permalink Normal View History

// 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');
});