test: isolate message tool unit plugin loading (#98701)

Co-authored-by: Peter Steinberger <58493+steipete@users.noreply.github.com>
This commit is contained in:
Peter Steinberger
2026-07-01 17:35:29 +01:00
committed by GitHub
parent a5e11c0083
commit db97bc1e4f

View File

@@ -111,6 +111,19 @@ const mocks = vi.hoisted(() => ({
),
}));
vi.mock("../../channels/plugins/bundled.js", async () => {
const actual = await vi.importActual<typeof import("../../channels/plugins/bundled.js")>(
"../../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;