Archived
1
0
This repository has been archived on 2025-11-29. You can view files and clone it, but cannot push or open issues or pull requests.
Files
app/apps/backend/src/tests/setup.ts

20 lines
424 B
TypeScript

import { beforeAll, afterAll } from 'bun:test';
import { redis } from '@/services/redis.service';
beforeAll(async () => {
console.log('Setting up test environment...');
try {
await redis.connect();
} catch (error) {
console.warn('Redis not available in tests, continuing without cache');
}
});
afterAll(async () => {
console.log('Cleaning up test environment...');
await redis.disconnect();
});