protocol/testing
packages/protocol/src/testing
Purpose
Public barrel for protocol testing utilities.@moltzap/protocol/testing — test fixtures, typed lifecycle clients,
arbitrary derivation, and Toxiproxy adversity helpers.
Public surface
agentId
Function
agentKeyArbitrary
Variable
agentKeyString
Function
agentKeyStringArbitrary
Variable
AgentRegistrationError
Class
appId
Function
connectionId
Variable
contactId
Function
conversationId
Function
leaseId
Function
makeTestAgentClient
Function
makeTestAppClient
Function
messageId
Function
mintTestAppCredential
Function
{ appId, appKey } (the appId is
gen_random_uuid(), NOT manifest.appId). The App-principal sibling of
registerTestAgent; the appKey is handed to a TestClient whose
appKey Connect arm binds an AppConnection through the implicit
moderator-endpoint registration path.
RealServerAcquireError
Class
redactedAgentKey
Function
redactedAppKey
Function
registerTestAgent
Function
RpcResponseError
Class
RpcTimeoutError
Class
taskId
Function
TestAgent
Interface
TestAgentClient
Interface
TestAppClient
Interface
TestAppCredential
Interface
TestAppHttpRegistrationError
Class
TestingError
TypeAlias
TestServer
Interface
TransportClosedError
Class
TransportIoError
Class
userId
Function
waitForValue
Function
probe until it returns a defined value, then return it.
waitUntil
Function
predicate until it returns true.
WIRE_ERROR_TAG
Variable
Files
errors.tslifecycle.tstest-fixtures.tswait.tswire-error-tags.ts