test: avoid bundled channel cold loads in message tool tests

This commit is contained in:
Peter Steinberger
2026-05-06 05:04:00 +01:00
parent b85b1c68d1
commit 2df7ec5671

View File

@@ -143,6 +143,12 @@ vi.mock("../../cli/command-secret-targets.js", () => ({
getScopedChannelsCommandSecretTargets: mocks.getScopedChannelsCommandSecretTargets,
}));
vi.mock("../../channels/plugins/message-tool-api.js", () => ({
resolveBundledChannelMessageToolDiscoveryAdapter: () => ({
describeMessageTool: () => ({ actions: ["send"], capabilities: [] }),
}),
}));
vi.mock("./agents-list-tool.js", () => ({
createAgentsListTool: () => openClawToolsFactoryMocks.tool("agents"),
}));