Archived
1
0

feat/tests #5

Merged
mrqiz merged 7 commits from feat/tests into lord 2025-11-26 00:06:35 +03:00
Showing only changes of commit 74513b4de3 - Show all commits

View File

@ -0,0 +1,19 @@
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();
});