Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Testing utilities for Fedify applications
Functions
& { url?: URL; data: TContextData; federation: Federation<TContextData>; }
Creates a mock Federation instance for testing purposes.
& { url?: URL; data: TContextData; recipient?: string | null; federation: Federation<TContextData>; }
Creates an InboxContext for testing purposes. Not exported - used internally only. Public API is in mock.ts
& { url?: URL; data: TContextData; identifier: string; federation: Federation<TContextData>; }
Creates an OutboxContext for testing purposes. Not exported - used internally only. Public API is in mock.ts
& { url: URL; data: TContextData; federation: Federation<TContextData>; }
Creates a RequestContext for testing purposes. Not exported - used internally only. Public API is in mock.ts
Tests a KvStore implementation with a standard set of tests.
Tests a MessageQueue implementation with a standard set of tests.
Interfaces
Options for testKvStore.
Options for testMessageQueue.
- testOrderingKey: boolean
Whether to test ordering key support. If
true, tests will verify that messages with the same ordering key are processed in order, while messages with different ordering keys can be processed in parallel.