mirror of https://github.com/openclaw/openclaw.git
test(gateway): avoid hoisted reply mock tdz
This commit is contained in:
parent
0979264ed5
commit
a60a4b4b5e
|
|
@ -584,7 +584,8 @@ vi.mock("../commands/agent.js", () => ({
|
|||
agentCommandFromIngress: agentCommand,
|
||||
}));
|
||||
vi.mock("../auto-reply/reply.js", () => ({
|
||||
getReplyFromConfig,
|
||||
getReplyFromConfig: (...args: Parameters<GetReplyFromConfigFn>) =>
|
||||
hoisted.getReplyFromConfig(...args),
|
||||
}));
|
||||
vi.mock("../cli/deps.js", async () => {
|
||||
const actual = await vi.importActual<typeof import("../cli/deps.js")>("../cli/deps.js");
|
||||
|
|
|
|||
Loading…
Reference in New Issue