mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-05 11:53:32 +00:00
test: isolate message tool unit plugin loading (#98701)
Co-authored-by: Peter Steinberger <58493+steipete@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
a5e11c0083
commit
db97bc1e4f
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user