@noisytransfer/test-helpers
v0.2.3
Published
Helper transports and harnesses for testing NoisyTransfer (RTC, mailbox, signalling).
Downloads
9
Readme
@noisytransfer/test-helpers
Test harnesses and transports used in NoisyTransfer tests.
import { mkMailbox, withSignalPair } from "@noisytransfer/test-helpers";
// mailbox-based TxLike pair for tests
const { A, B } = await mkMailbox("https://mailbox.example.com", {
room: "room-123", side: "A", sessionId: crypto.randomUUID()
});
// WebRTC signal harness (initiator/responder)
await withSignalPair(async ({ A, B }) => {
// use A/B as TxLike
});