fix type check

This commit is contained in:
Jinjing
2026-09-15 00:28:56 -07:00
parent 66a58e9267
commit 8a605aca88
@@ -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 {