test(auto-reply): preserve plugin hook runner lifecycle exports (#117647)

Co-authored-by: Peter Steinberger <steipete@macos.shared>
This commit is contained in:
Peter Steinberger
2026-08-01 14:50:19 -07:00
committed by GitHub
parent 99f9c433be
commit 2fcb1f7280

View File

@@ -130,11 +130,15 @@ vi.mock("../agents/auth-profiles/session-override.js", () => ({
resolveSessionAuthProfileOverrideMock(...args),
}));
vi.mock("../plugins/hook-runner-global.js", () => ({
getGlobalHookRunner: () => undefined,
initializeGlobalHookRunner: vi.fn(),
resetGlobalHookRunner: vi.fn(),
}));
vi.mock("../plugins/hook-runner-global.js", async (importOriginal) => {
const actual = await importOriginal<typeof import("../plugins/hook-runner-global.js")>();
return {
...actual,
getGlobalHookRunner: () => undefined,
initializeGlobalHookRunner: vi.fn(),
resetGlobalHookRunner: vi.fn(),
};
});
vi.mock("./reply/agent-runner.runtime.js", () => ({
runReplyAgent: (...args: unknown[]) => runReplyAgentMock(...args),