From 4ae0796b3d8b1bfc003fcf3471e240841cfb5f0a Mon Sep 17 00:00:00 2001 From: Shokkstokk Date: Fri, 5 Jun 2026 00:28:50 +0000 Subject: [PATCH] fix: add Switch mock to EPG test for SD logo toggle Frontend test was failing because the Mantine core mock didn't include the Switch component used by the SD logo style picker. --- frontend/src/components/forms/__tests__/EPG.test.jsx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/frontend/src/components/forms/__tests__/EPG.test.jsx b/frontend/src/components/forms/__tests__/EPG.test.jsx index bd8ad1cd..1121f865 100644 --- a/frontend/src/components/forms/__tests__/EPG.test.jsx +++ b/frontend/src/components/forms/__tests__/EPG.test.jsx @@ -223,6 +223,18 @@ vi.mock('@mantine/core', async () => ({ ScrollArea: ({ children }) =>
{children}
, Table: ({ children }) => {children}
, Tooltip: ({ children }) =>
{children}
, + Switch: ({ label, checked, onChange, disabled, description }) => ( + + ), })); // ── Imports after mocks ────────────────────────────────────────────────────────