createRedisNotifyProviderConformanceContext

Function

Signature

function createRedisNotifyProviderConformanceContext(options): NotifyAdapterConformanceContext;

redis/src/conformance/notify-provider-conformance.ts:23

Prepares the context the redisNotifyProviderConformanceCases run against: a notify adapter per case over a new provider, on channels of its own. The test file still owns the provider's resources and releases them itself.

Parameters

  • options
    object
    Context configuration.
  • options.createNotifyProvider
    () => Promise<RedisNotifyProvider>
    Creates the provider under test. Each case's adapter gets its own provider and closes it when the case ends, so closing one must not release resources the next one needs, such as the client connections.

Returns

Used in guides

esc

Search guides, integrations and every exported symbol.

↑ ↓ to navigate↵ to open