createPgNotifyProviderConformanceContext

Function

Signature

function createPgNotifyProviderConformanceContext(options): NotifyAdapterConformanceContext;

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

Prepares the context the pgNotifyProviderConformanceCases run against: each case gets its own notify adapter 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<PgNotifyProvider>
    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