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:
@@ -30,6 +30,7 @@ vi.mock("@fusion/core", () => {
|
||||
init = mockAgentStoreInit;
|
||||
getAgent = mockAgentStoreGetAgent;
|
||||
},
|
||||
deterministicGuardLocks: new Map(),
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
@@ -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(),
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user