From 6b785579544e5f52c5fd8cfc28791e23e280822d Mon Sep 17 00:00:00 2001 From: Marcel Date: Tue, 12 May 2026 17:50:55 +0200 Subject: [PATCH] refactor(notification-tests): use vi.mocked instead of type cast in call-order test Co-Authored-By: Claude Sonnet 4.6 --- .../src/lib/notification/NotificationDropdown.svelte.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/lib/notification/NotificationDropdown.svelte.test.ts b/frontend/src/lib/notification/NotificationDropdown.svelte.test.ts index 5337b752..561ec96d 100644 --- a/frontend/src/lib/notification/NotificationDropdown.svelte.test.ts +++ b/frontend/src/lib/notification/NotificationDropdown.svelte.test.ts @@ -193,7 +193,7 @@ describe('NotificationDropdown', () => { it('calls onClose before navigating to /aktivitaeten', async () => { const callOrder: string[] = []; const onClose = vi.fn(() => callOrder.push('close')); - (goto as ReturnType).mockImplementation(() => callOrder.push('goto')); + vi.mocked(goto).mockImplementation(() => callOrder.push('goto')); render(NotificationDropdown, { props: { notifications: [],