2
0
Files
cal/calcom/apps/api/v2/test/mocks/mock-redis-service.ts
2024-08-09 00:39:27 +02:00

16 lines
342 B
TypeScript

import { RedisService } from "@/modules/redis/redis.service";
import { Provider } from "@nestjs/common";
export const MockedRedisService = {
provide: RedisService,
useValue: {
redis: {
get: jest.fn(),
hgetall: jest.fn(),
set: jest.fn(),
hmset: jest.fn(),
expireat: jest.fn(),
},
},
} as Provider;