From 3dac0328cea90fdc834cd11fce8cfd954fc14a59 Mon Sep 17 00:00:00 2001 From: Marco Beretta <81851188+berry-13@users.noreply.github.com> Date: Mon, 27 Jul 2026 16:17:25 +0200 Subject: [PATCH] test(client): update shared component mocks --- .../SidePanel/Agents/Tools/__tests__/SkillsDialog.spec.tsx | 3 +++ .../Skills/dialogs/__tests__/CreateSkillDialog.spec.tsx | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/client/src/components/SidePanel/Agents/Tools/__tests__/SkillsDialog.spec.tsx b/client/src/components/SidePanel/Agents/Tools/__tests__/SkillsDialog.spec.tsx index bb0de03fac..a9684d54c6 100644 --- a/client/src/components/SidePanel/Agents/Tools/__tests__/SkillsDialog.spec.tsx +++ b/client/src/components/SidePanel/Agents/Tools/__tests__/SkillsDialog.spec.tsx @@ -94,6 +94,9 @@ jest.mock('@librechat/client', () => ({ ), Input: (props: React.ComponentProps<'input'>) => , + Label: ({ children, ...props }: React.ComponentProps<'label'>) => ( + + ), Radio: () => null, OGDialog: ({ open, children }: { open: boolean; children: React.ReactNode }) => open ?
{children}
: null, diff --git a/client/src/components/Skills/dialogs/__tests__/CreateSkillDialog.spec.tsx b/client/src/components/Skills/dialogs/__tests__/CreateSkillDialog.spec.tsx index 4c2ca3ac4f..d6247c4699 100644 --- a/client/src/components/Skills/dialogs/__tests__/CreateSkillDialog.spec.tsx +++ b/client/src/components/Skills/dialogs/__tests__/CreateSkillDialog.spec.tsx @@ -24,6 +24,11 @@ jest.mock( ...props }: React.ButtonHTMLAttributes & { variant?: string }) => React.createElement('button', props, children), + Input: React.forwardRef>( + (props, ref) => React.createElement('input', { ...props, ref }), + ), + Label: ({ children, ...props }: React.LabelHTMLAttributes) => + React.createElement('label', props, children), OGDialog: ({ open, children }: { open: boolean; children: ReactNode }) => open ? React.createElement(React.Fragment, null, children) : null, OGDialogContent: ({ children }: { children: ReactNode }) =>