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:
@@ -22,6 +22,7 @@ vi.mock("@fusion/core", () => {
|
||||
init = mockChatStoreInit;
|
||||
},
|
||||
exportAgentsToDirectory: (...args: unknown[]) => mockExportAgentsToDirectory(...args),
|
||||
deterministicGuardLocks: new Map(),
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
@@ -72,6 +72,7 @@ vi.mock("@fusion/core", () => {
|
||||
parseSingleAgentManifest: (...args: unknown[]) => mockParseSingleAgentManifest(...args),
|
||||
prepareAgentCompaniesImport: (...args: unknown[]) => mockPrepareAgentCompaniesImport(...args),
|
||||
AgentCompaniesParseError: MockAgentCompaniesParseError,
|
||||
deterministicGuardLocks: new Map(),
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@ vi.mock("@fusion/core", () => ({
|
||||
ChatStore: class MockChatStore {
|
||||
init = mockChatStoreInit;
|
||||
},
|
||||
deterministicGuardLocks: new Map(),
|
||||
}));
|
||||
|
||||
class MockStore extends EventEmitter {
|
||||
|
||||
@@ -24,6 +24,7 @@ vi.mock("@fusion/core", () => {
|
||||
ChatStore: class MockChatStore {
|
||||
init = mockChatStoreInit;
|
||||
},
|
||||
deterministicGuardLocks: new Map(),
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
@@ -27,6 +27,7 @@ vi.mock("@fusion/core", () => ({
|
||||
ChatStore: class MockChatStore {
|
||||
init = mockChatStoreInit;
|
||||
},
|
||||
deterministicGuardLocks: new Map(),
|
||||
}));
|
||||
|
||||
class MockStore extends EventEmitter {
|
||||
|
||||
@@ -61,6 +61,7 @@ vi.mock("@fusion/core", () => {
|
||||
init = mockAgentStoreInit;
|
||||
getAgent = mockAgentStoreGetAgent;
|
||||
},
|
||||
deterministicGuardLocks: new Map(),
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@ vi.mock("@fusion/core", () => {
|
||||
ChatStore: class MockChatStore {
|
||||
init = mockChatStoreInit;
|
||||
},
|
||||
deterministicGuardLocks: new Map(),
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
@@ -43,6 +43,7 @@ vi.mock("@fusion/core", () => ({
|
||||
listManagedDockerNodes: listManagedDockerNodesMock,
|
||||
deleteManagedDockerNode: deleteManagedDockerNodeMock,
|
||||
})),
|
||||
deterministicGuardLocks: new Map(),
|
||||
}));
|
||||
|
||||
function createStore() {
|
||||
|
||||
Reference in New Issue
Block a user