MCPcopy
hub / github.com/redis/node-redis / testWithLegacyClient

Function testWithLegacyClient

packages/client/lib/client/legacy-mode.spec.ts:9–11  ·  view source on GitHub ↗
(title: string, fn: (legacy: RedisLegacyClientType, client: RedisClientType) => Promise<unknown>)

Source from the content-addressed store, hash-verified

7import { once } from 'node:events';
8
9function testWithLegacyClient(title: string, fn: (legacy: RedisLegacyClientType, client: RedisClientType) => Promise<unknown>) {
10 testUtils.testWithClient(title, client => fn(client.legacy(), client), GLOBAL.SERVERS.OPEN);
11}
12
13describe('Legacy Mode', () => {
14 describe('client.sendCommand', () => {

Callers 1

Calls 2

testWithClientMethod · 0.80
legacyMethod · 0.80

Tested by

no test coverage detected