test(v3): add clearAllAgentSessions mock to workspace store tests
This commit is contained in:
parent
160712de50
commit
86da302aa6
1 changed files with 4 additions and 0 deletions
|
|
@ -26,6 +26,10 @@ function mockGroupsData() {
|
|||
};
|
||||
}
|
||||
|
||||
vi.mock('../stores/agents.svelte', () => ({
|
||||
clearAllAgentSessions: vi.fn(),
|
||||
}));
|
||||
|
||||
vi.mock('../adapters/groups-bridge', () => ({
|
||||
loadGroups: vi.fn().mockImplementation(() => Promise.resolve(mockGroupsData())),
|
||||
saveGroups: vi.fn().mockResolvedValue(undefined),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue