syntropylog
Version:
An instance manager with observability for Node.js applications
59 lines (58 loc) • 1.65 kB
TypeScript
/**
* FILE: src/testing/BeaconRedisMock.ts
* DESCRIPTION: A mock implementation of IBeaconRedis for use in unit tests.
* This mock is framework agnostic and works with both Vitest and Jest.
*/
import { IBeaconRedis } from '../redis/IBeaconRedis';
export declare class BeaconRedisMock implements IBeaconRedis {
private spyFn;
readonly getInstanceName: any;
readonly connect: any;
readonly disconnect: any;
readonly quit: any;
readonly updateConfig: any;
readonly multi: any;
readonly get: any;
readonly set: any;
readonly del: any;
readonly exists: any;
readonly expire: any;
readonly ttl: any;
readonly incr: any;
readonly decr: any;
readonly incrBy: any;
readonly decrBy: any;
readonly hGet: any;
readonly hSet: any;
readonly hGetAll: any;
readonly hDel: any;
readonly hExists: any;
readonly hIncrBy: any;
readonly lPush: any;
readonly rPush: any;
readonly lPop: any;
readonly rPop: any;
readonly lRange: any;
readonly lLen: any;
readonly lTrim: any;
readonly sAdd: any;
readonly sMembers: any;
readonly sIsMember: any;
readonly sRem: any;
readonly sCard: any;
readonly zAdd: any;
readonly zRange: any;
readonly zRangeWithScores: any;
readonly zRem: any;
readonly zCard: any;
readonly zScore: any;
readonly subscribe: any;
readonly unsubscribe: any;
readonly publish: any;
readonly ping: any;
readonly info: any;
readonly eval: any;
constructor(spyFn?: (implementation?: any) => any);
private createTransactionObject;
private createMock;
}