Runs the shared Dispatcher contract that every adapter must satisfy. It runs against the
HTTP and SQS adapters over fake transports, following the same pattern as
test/conformance/store.ts.
The encoding test pins both transports to one byte-for-byte body from encodeEvent, so HTTP and
SQS cannot silently diverge in what a receiver sees. The failure test pins the error contract the
relay worker depends on: a retryable PROVIDER.FAILURE so a failed delivery redelivers. The
signal test pins cancellation forwarding.
A host wires its own adapter in by building a DispatcherHarness over a fake of its
transport and calling this at the top level of a node --test file. The factory runs afresh
inside each test, so each test sees an empty recording.
Runs the shared Dispatcher contract that every adapter must satisfy. It runs against the HTTP and SQS adapters over fake transports, following the same pattern as
test/conformance/store.ts.The encoding test pins both transports to one byte-for-byte body from
encodeEvent, so HTTP and SQS cannot silently diverge in what a receiver sees. The failure test pins the error contract the relay worker depends on: a retryablePROVIDER.FAILUREso a failed delivery redelivers. The signal test pins cancellation forwarding.A host wires its own adapter in by building a DispatcherHarness over a fake of its transport and calling this at the top level of a
node --testfile. The factory runs afresh inside each test, so each test sees an empty recording.