mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-25 08:02:04 +00:00
17 lines
499 B
TypeScript
17 lines
499 B
TypeScript
import { vi } from "vitest";
|
|
|
|
vi.mock("../../config/config.js", async (importOriginal) => {
|
|
const actual = await importOriginal<typeof import("../../config/config.js")>();
|
|
return {
|
|
...actual,
|
|
loadConfig: () => ({}),
|
|
};
|
|
});
|
|
|
|
// Prevent transitive import chain from reaching discord/monitor which needs https-proxy-agent.
|
|
vi.mock("../../../extensions/discord/runtime-api.js", () => ({
|
|
createDiscordGatewayPlugin: () => ({}),
|
|
}));
|
|
|
|
export function installSubagentsCommandCoreMocks() {}
|