From 8a605aca8825b651d1f5c8b40042011a65bae3b2 Mon Sep 17 00:00:00 2001 From: Jinjing <6427696+AmethystLiang@users.noreply.github.com> Date: Tue, 15 Sep 2026 00:28:56 -0700 Subject: [PATCH] fix type check --- .../src/components/settings/VoiceMicrophoneSetting.test.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/renderer/src/components/settings/VoiceMicrophoneSetting.test.tsx b/src/renderer/src/components/settings/VoiceMicrophoneSetting.test.tsx index 3e29fb49f9e..d3cd2dc9911 100644 --- a/src/renderer/src/components/settings/VoiceMicrophoneSetting.test.tsx +++ b/src/renderer/src/components/settings/VoiceMicrophoneSetting.test.tsx @@ -4,6 +4,7 @@ import { act } from 'react' import { createRoot, type Root } from 'react-dom/client' import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' import type { DeveloperPermissionRequestResult } from '../../../../shared/developer-permissions-types' +import { getDefaultVoiceSettings } from '../../../../shared/constants' import type { VoiceSettings } from '../../../../shared/speech-types' // Why: repo convention — React only suppresses its act() warning when this global is set. @@ -18,9 +19,8 @@ vi.mock('sonner', () => ({ import { VoiceMicrophoneSetting } from './VoiceMicrophoneSetting' const voiceSettings: VoiceSettings = { - enabled: true, - microphoneDeviceId: null, - microphoneDeviceLabel: null + ...getDefaultVoiceSettings(), + enabled: true } function namedError(name: string, message = 'boom'): Error {