diff --git a/CLAUDE.md b/CLAUDE.md index d0ccc65..299ff58 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -79,7 +79,7 @@ npm run typecheck # tsc --noEmit ## 현재 상태 Phase: 8 진행 중 (Phase 1~7.5 + 3.5 완료, Phase 8 UI+기능 보강 진행) 마지막 작업: SoX `-t waveaudio` 수정 → 마이크 캡처 동작 확인, VAD 에러 방어 -다음 작업: **VoiceModeService ↔ 팝업 연동** (RE 패턴 기반 — 핵심 병목) +다음 작업: **Phase 9 기능 확장** (마이크 테스트, 온보딩, MetalDial 등) 차단 이슈: @nut-tree-fork/nut-js 포크 사용 ### ⚠️ 핵심 병목: VoiceModeService ↔ 팝업 연동 미구현 diff --git a/tests/setup.ts b/tests/setup.ts index dc22575..ff53c97 100644 --- a/tests/setup.ts +++ b/tests/setup.ts @@ -41,6 +41,18 @@ vi.mock('electron', () => ({ } })) +// WindowManager 모킹 — VoiceModeService가 import하므로 필요 +vi.mock('../src/main/windows/WindowManager', () => ({ + showRecordingTip: vi.fn(), + hideRecordingTip: vi.fn(), + updateRecordingTipState: vi.fn(), + sendAudioLevelToTip: vi.fn(), + showResultPopup: vi.fn(), + hideResultPopup: vi.fn(), + getMainWindow: vi.fn(), + createMainWindow: vi.fn(), +})) + // electron-log 모킹 vi.mock('electron-log', () => { const noop = vi.fn()