mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-04 16:00:24 +00:00
refactor: clean extension api boundaries
This commit is contained in:
@@ -101,7 +101,7 @@ export function getWebSessionMocks(): AnyMocks {
|
||||
return webSessionMocks;
|
||||
}
|
||||
|
||||
vi.mock("../../extensions/whatsapp/src/session.js", () => webSessionMocks);
|
||||
vi.mock("../../extensions/whatsapp/api.js", () => webSessionMocks);
|
||||
|
||||
export const MAIN_SESSION_KEY = "agent:main:main";
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ export function installSubagentsCommandCoreMocks() {
|
||||
});
|
||||
|
||||
// Prevent transitive import chain from reaching discord/monitor which needs https-proxy-agent.
|
||||
vi.mock("../../../extensions/discord/src/monitor/gateway-plugin.js", () => ({
|
||||
vi.mock("../../../extensions/discord/runtime-api.js", () => ({
|
||||
createDiscordGatewayPlugin: () => ({}),
|
||||
}));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user