🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
✅ test(chat-input): mock project skills through the tool store (#21050)
Arvin Xu65d9d28e463e
diff --git a/src/features/ChatInput/InputEditor/ActionTag/useSlashActionItems.projectSkills.test.ts b/src/features/ChatInput/InputEditor/ActionTag/useSlashActionItems.projectSkills.test.tsindex 7246ca47ad1..a8415ff3d06 100644--- a/src/features/ChatInput/InputEditor/ActionTag/useSlashActionItems.projectSkills.test.ts+++ b/src/features/ChatInput/InputEditor/ActionTag/useSlashActionItems.projectSkills.test.ts@@ -40,10 +40,6 @@ vi.mock('@/hooks/useEffectiveWorkingDirectory', () => ({useEffectiveWorkingDirectory: () => '/repo/pane',}));-vi.mock('@/hooks/useFetchProjectSkills', () => ({- useFetchProjectSkills: state.useFetchProjectSkills,-}));-vi.mock('@/store/agent', () => ({useAgentStore: (selector: (s: object) => unknown) => selector({ agentMap: {} }),}));@@ -62,11 +58,15 @@ vi.mock('@/store/chat', () => ({vi.mock('@/store/tool', () => ({useToolStore: (selector: (s: object) => unknown) =>- selector({ useFetchAgentDocumentSkills: () => undefined }),+ selector({+ useFetchAgentDocumentSkills: () => undefined,+ useFetchProjectSkills: state.useFetchProjectSkills,+ }),}));vi.mock('@/store/tool/selectors', () => ({agentDocumentSkillsSelectors: { getAgentDocumentSkills: () => () => [] },+ projectSkillsSelectors: { getProjectSkills: () => () => undefined },}));vi.mock('./useInstalledSkillsAndTools', () => ({ useInstalledSkillsAndTools: () => [] }));