mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-01 23:21:42 +00:00
test(auto-reply): preserve plugin hook runner lifecycle exports (#117647)
Co-authored-by: Peter Steinberger <steipete@macos.shared>
This commit is contained in:
committed by
GitHub
parent
99f9c433be
commit
2fcb1f7280
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user