Skip to content

Commit db97bc1

Browse files
authored
test: isolate message tool unit plugin loading (#98701)
Co-authored-by: Peter Steinberger <[email protected]>
1 parent a5e11c0 commit db97bc1

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

src/agents/tools/message-tool.test.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,19 @@ const mocks = vi.hoisted(() => ({
111111
),
112112
}));
113113

114+
vi.mock("../../channels/plugins/bundled.js", async () => {
115+
const actual = await vi.importActual<typeof import("../../channels/plugins/bundled.js")>(
116+
"../../channels/plugins/bundled.js",
117+
);
118+
// This unit suite installs minimal loaded plugins when it exercises channel actions.
119+
// Bundled source entry loading belongs to the loader integration suites.
120+
return {
121+
...actual,
122+
getBundledChannelPlugin: vi.fn(() => undefined),
123+
getBundledChannelSetupPlugin: vi.fn(() => undefined),
124+
};
125+
});
126+
114127
type RunMessageActionInput = {
115128
agentId?: string;
116129
cfg?: unknown;

0 commit comments

Comments
 (0)