From 6b5c7459622dead1b8ddbcade0ea60a6669d55ac Mon Sep 17 00:00:00 2001 From: Shokkstokk Date: Fri, 5 Jun 2026 00:57:19 +0000 Subject: [PATCH] fix: add remaining Mantine component mocks to EPG test Add UnstyledButton, Alert, Stack, Text, TextInput mocks to prevent test failures from unmocked Mantine components in SD settings UI. --- frontend/src/components/forms/__tests__/EPG.test.jsx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/frontend/src/components/forms/__tests__/EPG.test.jsx b/frontend/src/components/forms/__tests__/EPG.test.jsx index 1121f865..b798bb4a 100644 --- a/frontend/src/components/forms/__tests__/EPG.test.jsx +++ b/frontend/src/components/forms/__tests__/EPG.test.jsx @@ -235,6 +235,17 @@ vi.mock('@mantine/core', async () => ({ {label} ), + UnstyledButton: ({ children, onClick, ...props }) => ( + + ), + Alert: ({ children, title, color, icon }) => ( +
{title}{children}
+ ), + Stack: ({ children, gap }) =>
{children}
, + Text: ({ children, ...props }) => {children}, + TextInput: ({ label, value, onChange, placeholder, ...props }) => ( + + ), })); // ── Imports after mocks ────────────────────────────────────────────────────────