From db97bc1e4fcfd899fdfff00965733acb907f0765 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 1 Jul 2026 17:35:29 +0100 Subject: [PATCH] test: isolate message tool unit plugin loading (#98701) Co-authored-by: Peter Steinberger <58493+steipete@users.noreply.github.com> --- src/agents/tools/message-tool.test.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/agents/tools/message-tool.test.ts b/src/agents/tools/message-tool.test.ts index bf62794165d5..32acc20bfcb0 100644 --- a/src/agents/tools/message-tool.test.ts +++ b/src/agents/tools/message-tool.test.ts @@ -111,6 +111,19 @@ const mocks = vi.hoisted(() => ({ ), })); +vi.mock("../../channels/plugins/bundled.js", async () => { + const actual = await vi.importActual( + "../../channels/plugins/bundled.js", + ); + // This unit suite installs minimal loaded plugins when it exercises channel actions. + // Bundled source entry loading belongs to the loader integration suites. + return { + ...actual, + getBundledChannelPlugin: vi.fn(() => undefined), + getBundledChannelSetupPlugin: vi.fn(() => undefined), + }; +}); + type RunMessageActionInput = { agentId?: string; cfg?: unknown;