Files
openclaw/extensions/msteams/src/monitor-handler/message-handler-mock-support.test-support.ts
Peter Steinberger 601ffa2530 refactor(channels): move inbound turn execution into core (#110095)
* refactor(channels): centralize turn execution lifecycle

* refactor(extensions): adopt core channel turn plans

* test(channels): ratchet modern dispatch ownership

* chore(channels): drop stale max-lines exemption

* fix(channels): allow async delivery error cleanup

* test(channels): await async delivery cleanup

* test(channels): await delivery error callbacks

* fix(channels): preserve delivery error contract

* fix(plugin-sdk): preserve channel inbound declarations

* test(channels): exercise core delivery plans

* fix(channels): await delivery error cleanup

* fix(channels): preserve async cleanup contract

* refactor(channels): trim dispatch boilerplate

* fix(channels): mask observe-only dispatch results

* refactor(channels): delete unused dispatch exports

* fix(msteams): preserve resolver config overrides

* refactor(channels): keep Teams turn config internal

* test(plugins): drop retired Teams runtime export guard
2026-07-18 00:55:46 +01:00

16 lines
480 B
TypeScript

// Msteams plugin module implements message handler mock support support behavior.
import { vi } from "vitest";
import { getMSTeamsTestRuntimeState } from "../monitor-handler.test-helpers.js";
export function getRuntimeApiMockState() {
return getMSTeamsTestRuntimeState();
}
vi.mock("../reply-dispatcher.js", () => ({
createMSTeamsReplyDispatcher: () => ({
dispatcherOptions: {},
delivery: { deliver: vi.fn(async () => undefined) },
replyOptions: {},
}),
}));