test(gateway): avoid hoisted reply mock tdz

This commit is contained in:
Peter Steinberger 2026-03-13 03:17:51 +00:00
parent 0979264ed5
commit a60a4b4b5e

View File

@ -584,7 +584,8 @@ vi.mock("../commands/agent.js", () => ({
agentCommandFromIngress: agentCommand, agentCommandFromIngress: agentCommand,
})); }));
vi.mock("../auto-reply/reply.js", () => ({ vi.mock("../auto-reply/reply.js", () => ({
getReplyFromConfig, getReplyFromConfig: (...args: Parameters<GetReplyFromConfigFn>) =>
hoisted.getReplyFromConfig(...args),
})); }));
vi.mock("../cli/deps.js", async () => { vi.mock("../cli/deps.js", async () => {
const actual = await vi.importActual<typeof import("../cli/deps.js")>("../cli/deps.js"); const actual = await vi.importActual<typeof import("../cli/deps.js")>("../cli/deps.js");