createRedisNotifyProviderConformanceContext
FunctionSignature
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
objectContext 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.