fix: add missing events property to bluebubbles PluginRuntime mock

This commit is contained in:
SciFantastic
2026-02-17 08:46:00 -06:00
committed by Peter Steinberger
parent b91a22a3fb
commit 53ada1e9b9

View File

@@ -274,6 +274,12 @@ function createMockRuntime(): PluginRuntime {
imessage: {} as PluginRuntime["channel"]["imessage"],
whatsapp: {} as PluginRuntime["channel"]["whatsapp"],
},
events: {
onAgentEvent: vi.fn(() => () => {}) as unknown as PluginRuntime["events"]["onAgentEvent"],
onSessionTranscriptUpdate: vi.fn(
() => () => {},
) as unknown as PluginRuntime["events"]["onSessionTranscriptUpdate"],
},
logging: {
shouldLogVerbose: vi.fn(
() => false,