mirror of
https://github.com/openclaw/openclaw.git
synced 2026-02-19 18:39:20 -05:00
tests: fix missing mock exports openclaw#19424 thanks @mbelinky
This commit is contained in:
@@ -112,6 +112,7 @@ vi.mock("../../config/sessions.js", () => ({
|
||||
vi.mock("../../routing/session-key.js", () => ({
|
||||
buildAgentMainSessionKey: vi.fn().mockReturnValue("agent:default:cron:test"),
|
||||
normalizeAgentId: vi.fn((id: string) => id),
|
||||
DEFAULT_ACCOUNT_ID: "default",
|
||||
}));
|
||||
|
||||
vi.mock("../../infra/agent-events.js", () => ({
|
||||
|
||||
@@ -11,6 +11,7 @@ vi.mock("../commands/agent.js", () => ({
|
||||
}));
|
||||
vi.mock("../config/config.js", () => ({
|
||||
loadConfig: vi.fn(() => ({ session: { mainKey: "agent:main:main" } })),
|
||||
STATE_DIR: "/tmp/openclaw-state",
|
||||
}));
|
||||
vi.mock("../config/sessions.js", () => ({
|
||||
updateSessionStore: vi.fn(),
|
||||
|
||||
Reference in New Issue
Block a user