Skip to content

The agent that grows with you

fix(desktop): replace import() type annotation in voice hook test

Brooklyn Nicholson32bff7c7f7a0
diff --git a/apps/desktop/src/app/chat/composer/hooks/use-composer-voice.test.tsx b/apps/desktop/src/app/chat/composer/hooks/use-composer-voice.test.tsx
index c76bdbf4a15..d7697550561 100644
--- a/apps/desktop/src/app/chat/composer/hooks/use-composer-voice.test.tsx
+++ b/apps/desktop/src/app/chat/composer/hooks/use-composer-voice.test.tsx
@@ -1,4 +1,5 @@
import { act, cleanup, renderHook } from '@testing-library/react'
+import type * as Nanostores from 'nanostores'
import { afterEach, describe, expect, it, vi } from 'vitest'
import { useComposerVoice } from './use-composer-voice'
@@ -16,7 +17,7 @@ vi.mock('@nanostores/react', () => ({
}))
vi.mock('nanostores', async () => {
- const actual = await vi.importActual<typeof import('nanostores')>('nanostores')
+ const actual = await vi.importActual<typeof Nanostores>('nanostores')
return { ...actual, computed: (deps: unknown, fn: unknown) => fn }
})