test(dashboard): add deterministicGuardLocks to @fusion/core mocks

proxy-routes and routes-agent-skills tests mock @fusion/core but omit
the deterministicGuardLocks Map that register-task-workflow-routes
imports at module-load time. Add the export so the mock satisfies the
shape consumers expect. Fixes 24 failing tests across the two files.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsxdsm
2026-05-19 17:44:53 -07:00
parent 7dafde4c43
commit cfd20d319a
2 changed files with 2 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ vi.mock("@fusion/core", () => {
init = mockAgentStoreInit;
getAgent = mockAgentStoreGetAgent;
},
deterministicGuardLocks: new Map(),
};
});

View File

@@ -57,6 +57,7 @@ vi.mock("@fusion/core", () => {
? `.fusion/agents/${agentName.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "")}-${agentId}/HEARTBEAT.md`
: `.fusion/agents/${agentId}/HEARTBEAT.md`,
getSafeAgentAssetIdSegment: (agentId: string) => agentId.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "") || "agent",
deterministicGuardLocks: new Map(),
};
});