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

8 more test files were failing to load because their vi.mock("@fusion/core")
factories didn't include the deterministicGuardLocks export that
register-task-workflow-routes pulls in at module-load time. Add the
empty Map to each mock's return object. Unblocks the suite-level
collection for these files (previously the entire file's tests counted
as 0/failed because the module never loaded).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsxdsm
2026-05-19 18:33:36 -07:00
parent 236bfeeabc
commit 1c706769f3
8 changed files with 8 additions and 0 deletions

View File

@@ -22,6 +22,7 @@ vi.mock("@fusion/core", () => {
init = mockChatStoreInit;
},
exportAgentsToDirectory: (...args: unknown[]) => mockExportAgentsToDirectory(...args),
deterministicGuardLocks: new Map(),
};
});

View File

@@ -72,6 +72,7 @@ vi.mock("@fusion/core", () => {
parseSingleAgentManifest: (...args: unknown[]) => mockParseSingleAgentManifest(...args),
prepareAgentCompaniesImport: (...args: unknown[]) => mockPrepareAgentCompaniesImport(...args),
AgentCompaniesParseError: MockAgentCompaniesParseError,
deterministicGuardLocks: new Map(),
};
});

View File

@@ -26,6 +26,7 @@ vi.mock("@fusion/core", () => ({
ChatStore: class MockChatStore {
init = mockChatStoreInit;
},
deterministicGuardLocks: new Map(),
}));
class MockStore extends EventEmitter {

View File

@@ -24,6 +24,7 @@ vi.mock("@fusion/core", () => {
ChatStore: class MockChatStore {
init = mockChatStoreInit;
},
deterministicGuardLocks: new Map(),
};
});

View File

@@ -27,6 +27,7 @@ vi.mock("@fusion/core", () => ({
ChatStore: class MockChatStore {
init = mockChatStoreInit;
},
deterministicGuardLocks: new Map(),
}));
class MockStore extends EventEmitter {

View File

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

View File

@@ -24,6 +24,7 @@ vi.mock("@fusion/core", () => {
ChatStore: class MockChatStore {
init = mockChatStoreInit;
},
deterministicGuardLocks: new Map(),
};
});

View File

@@ -43,6 +43,7 @@ vi.mock("@fusion/core", () => ({
listManagedDockerNodes: listManagedDockerNodesMock,
deleteManagedDockerNode: deleteManagedDockerNodeMock,
})),
deterministicGuardLocks: new Map(),
}));
function createStore() {