@botmesh/core/testing — test kit for bots: MockProvider, createTestBot, the chaos kit
(ChaosProvider, withChaos), identity-contract checks, crash simulation, golden
transcripts and in-memory coordinators. Never imported by the engine itself.
Test bot
- CreateTestBotOptions
- TestBot
- createTestBot
- DEFAULT_TEST_USER
- DEFAULT_TEST_NAME
- TestKitError
- TestMediaKind
- PressedButton
- TestTranscriptOptions
- TestSent
- TestChat
MockProvider
- MockOutgoing
- MockMediaToken
- MockMediaSource
- MockMediaOptions
- MockIncomingOptions
- MockJournalEntry
- MockProviderOptions
- MockProviderSupports
- MockEdit
- MockDraft
- MockProvider
Contract checks
- CapabilityRule
- CapabilityViolation
- CapabilityContractError
- checkCapabilityContract
- assertCapabilityContract
- PresenceProbe
- checkPresenceWhileDisconnected
- assertPresenceWhileDisconnected
- IdentityEventInput
- IdentityExpectation
- IdentityExpectations
- IdentityContractOptions
- IdentityRule
- IdentityViolation
- IdentityContractError
- checkIdentityContract
- assertStableIdentity
- EventRecorder
- recordEvents
- InboundContractInput
- InboundContractOptions
- InboundRule
- InboundViolation
- InboundContractError
- checkInboundContract
- assertInboundContract
Chaos testing
- createSeededRandom
- ChaosRange
- ChaosDelay
- ChaosDuplicateOptions
- ChaosReorderOptions
- ChaosSendErrorKind
- ChaosSendAttempt
- ChaosErrorFactory
- ChaosSendFailureOptions
- ChaosDisconnectOptions
- ChaosAliasOptions
- ChaosOptions
- ChaosLogEntry
- ChaosDisconnectedError
- ChaosProvider
- withChaos
- cloneInboundEvent
Crash testing
Coordination
Tracing
Golden transcripts
- outboundText
- TranscriptInboundEvent
- inboundTurnOf
- outboundTurnOf
- transcriptToText
- serializeContent
- ReplayBotFactory
- ReplayMask
- REPLAY_MASKS
- ReplayOptions
- TranscriptDiff
- ReplayResult
- TranscriptMismatchError
- replayTranscript
- assertTranscript
- formatReplayReport