From 720069f1465bd6bfa6ad8e56734a8c203d447d5d Mon Sep 17 00:00:00 2001 From: Johnpaul Date: Tue, 20 Jan 2026 02:03:18 +0100 Subject: [PATCH] test: remove explicit any type from useLoad3dDrag.test.ts Replaced any with ReturnType for mockToastStore. All tests passing (13/13), 0 typecheck errors. Part of #8092 --- src/composables/useLoad3dDrag.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/composables/useLoad3dDrag.test.ts b/src/composables/useLoad3dDrag.test.ts index f35c5c7360..ca280f7d1e 100644 --- a/src/composables/useLoad3dDrag.test.ts +++ b/src/composables/useLoad3dDrag.test.ts @@ -34,7 +34,7 @@ function createMockDragEvent( } describe('useLoad3dDrag', () => { - let mockToastStore: any + let mockToastStore: ReturnType let mockOnModelDrop: (file: File) => void | Promise beforeEach(() => { @@ -42,7 +42,9 @@ describe('useLoad3dDrag', () => { mockToastStore = { addAlert: vi.fn() - } + } as Partial> as ReturnType< + typeof useToastStore + > vi.mocked(useToastStore).mockReturnValue(mockToastStore) mockOnModelDrop = vi.fn()