test(gateway): avoid hoisted reply mock tdz
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user