test(native-chat): use one store mock for link actions

This commit is contained in:
Merge Sim
2026-09-06 14:36:12 -07:00
parent 0cd72064af
commit 0fb171673f
@@ -27,7 +27,7 @@ vi.mock('./use-native-chat-file-link-click', () => ({
useNativeChatFileLinkClick: (context: unknown) => (context ? mocks.openFileLink : undefined)
}))
vi.mock('../../store', () => ({
vi.mock('@/store', () => ({
useAppStore: Object.assign(
(selector: (state: Record<string, unknown>) => unknown) =>
selector({ openSettingsPage: vi.fn(), openSettingsTarget: vi.fn() }),
@@ -35,11 +35,6 @@ vi.mock('../../store', () => ({
)
}))
vi.mock('@/store', () => ({
useAppStore: (selector: (state: Record<string, unknown>) => unknown) =>
selector({ openSettingsPage: vi.fn(), openSettingsTarget: vi.fn() })
}))
vi.mock('@/components/ui/tooltip', () => ({
Tooltip: ({ children }: { children: ReactNode }) => children,
TooltipTrigger: ({ children }: { children: ReactNode }) => children,