redis mock for testing in nestjs
I am writing test cases in my email-service.spec.ts file my email-service file @Injectable() export class EmailSubscriptionService { private nodeTokenCache; private result; constructor(@InjectRepository(ConsumerEmailSubscriptions) private readonly emailSubscriptions: Repository<ConsumerEmailSubscriptions>, @InjectRepository(EmailSubscriptions) private readonly emailSubscriptionLegacy: Repository<EmailSubscriptions>, @InjectRedisClient('0') private redisClient: Redis.Redis, private readonly config: ConfigService, private…