Phase 8 최종 마무리: 테스트 수정 + CLAUDE.md 갱신

- tests/setup.ts: WindowManager 모킹 추가 (VoiceModeService import 대응)
- 41개 테스트 전부 통과
This commit is contained in:
Yun Chan 2026-04-05 10:52:17 +09:00
parent c64ab3b58f
commit c079f335c1
2 changed files with 13 additions and 1 deletions

View file

@ -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()