From 3cb0925357323d79fd74ec29bd33697246ee389b Mon Sep 17 00:00:00 2001 From: SergeantPanda Date: Sat, 28 Mar 2026 17:04:57 -0500 Subject: [PATCH] tests: Add user store mock and additional icons for VodConnectionCard tests --- .../__tests__/VodConnectionCard.test.jsx | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/cards/__tests__/VodConnectionCard.test.jsx b/frontend/src/components/cards/__tests__/VodConnectionCard.test.jsx index 6deeae78..7b0014e7 100644 --- a/frontend/src/components/cards/__tests__/VodConnectionCard.test.jsx +++ b/frontend/src/components/cards/__tests__/VodConnectionCard.test.jsx @@ -116,16 +116,35 @@ vi.mock('@mantine/core', () => ({ ), })); +// ── useUsersStore ───────────────────────────────────────────────────────────── +vi.mock('../../../store/users.jsx', () => ({ + default: vi.fn((selector) => selector({ users: [] })), +})); + // ── lucide-react ────────────────────────────────────────────────────────────── vi.mock('lucide-react', () => ({ + // navigation.js icons (all must be present for the auth→navigation import chain) ListOrdered: () => , + Play: () => , + Database: () => , + LayoutGrid: () => , + Settings: () => , + ChartLine: () => , + Video: () => , + PlugZap: () => , + User: () => , + FileImage: () => , + Webhook: () => , + Logs: () => , + Blocks: () => , + MonitorCog: () => , + // VodConnectionCard-specific icons ChevronDown: ({ size, style }) => ( ), HardDriveUpload: () => , SquareX: () => , Timer: () => , - Video: () => , })); // ── Imports after mocks ───────────────────────────────────────────────────────