test: v1.1.0 coverage 55% → 65% (+77 component/hook tests) - #125
Merged
Conversation
Reaches v1.1.0 roadmap target of 65% statements. Adds 77 new tests across 7 files covering React components, hooks, and UI primitives. New test files: - useFileTranscription.test.tsx (10): state machine idle→selected→ transcribing→done/error, cancel, reset, no-file error - useHotkey.test.tsx (13): register/unregister/sync, dedup, error paths - useModelStatus.test.tsx (13): stage transitions, downloadModels, listener registration, error paths - settings-panel.test.tsx (12): rendering, permissions, AI modes, close/onChange/save callbacks - effects-layer-component.test.tsx (6): enabled/disabled, WebGL gate, reduced-motion gate, Aurora mounting - ui-components.test.tsx (24, 1 skip): Card/Input/Label/StatusLight/ HistoryModal/Toaster rendering + prop forwarding Coverage: 54.8% → 65.2% (full src/). Threshold bumped 52→62 (stmts). Tests: 996 → 1073 (+77). All typecheck + lint clean.
TeFuirnever
added a commit
that referenced
this pull request
Jul 31, 2026
Roadmap hygiene pass after auditing the strategic plan against actual git state. Three issues fixed: 1. CHANGELOG: backfill missing [1.1.0] entry. PRs #123/#124/#125 (frontend coverage work) merged to main but never recorded in CHANGELOG. Documents the vitest coverage scope expansion (helpers only -> full src/**) and threshold bump (62->66 stmts) that caused the 95%->46% apparent coverage drop (same tests, wider scope). 2. README: replace hardcoded '672 tests / 95% coverage' badges with a dynamic CI status badge. The old numbers were stale (95% used the narrow ~40-file scope; full-src reality is ~46%). Coverage badge removed since no codecov/coveralls uploader is wired into CI yet — to restore, add codecov-action and link a codecov badge. Roadmap section numbers also de-hardcoded to 'see CI'. 3. strategic-plan-gap-analysis.md: add HISTORICAL SNAPSHOT freeze notice at top. README linked this as the authoritative 'full plan' but the doc is a 2026-05-24 snapshot with stale .js refs (pre ADR-010 big-bang) and outdated 97% coverage figure. Now points readers to follow-ups.md + CHANGELOG + ADRs as the live sources of truth. Co-authored-by: woshiguanxiaoliang <woshiguanxiaoliang@noreply.gitcode.com>
TeFuirnever
added a commit
that referenced
this pull request
Jul 31, 2026
* docs: fix stale roadmap data and align version bookkeeping Roadmap hygiene pass after auditing the strategic plan against actual git state. Three issues fixed: 1. CHANGELOG: backfill missing [1.1.0] entry. PRs #123/#124/#125 (frontend coverage work) merged to main but never recorded in CHANGELOG. Documents the vitest coverage scope expansion (helpers only -> full src/**) and threshold bump (62->66 stmts) that caused the 95%->46% apparent coverage drop (same tests, wider scope). 2. README: replace hardcoded '672 tests / 95% coverage' badges with a dynamic CI status badge. The old numbers were stale (95% used the narrow ~40-file scope; full-src reality is ~46%). Coverage badge removed since no codecov/coveralls uploader is wired into CI yet — to restore, add codecov-action and link a codecov badge. Roadmap section numbers also de-hardcoded to 'see CI'. 3. strategic-plan-gap-analysis.md: add HISTORICAL SNAPSHOT freeze notice at top. README linked this as the authoritative 'full plan' but the doc is a 2026-05-24 snapshot with stale .js refs (pre ADR-010 big-bang) and outdated 97% coverage figure. Now points readers to follow-ups.md + CHANGELOG + ADRs as the live sources of truth. * test: v1.3.0 coverage 70% → 79% (+58 tests, near industry 80%) Largest single-PR coverage jump: +9pp (70% → 79%). useRecording.ts (520 lines) went from 2.67% → 87.5% — the biggest win in the repo. New test files (58 tests): - useRecording.test.tsx (25): start/stop recording, transcription flow, AI optimization, save callback, error paths, determineProcessingMode. Mocks MediaRecorder + AudioContext + getUserMedia in jsdom. - model-status-indicator.test.tsx (21): all stage branches (need_download/ downloading/loading/ready/error), progress bars, download/cancel buttons. - app-expanded.test.tsx (9): model-ready toggleRecording, file-import mode, transcription result + reset, copy callback. - settings-sections.test.tsx: unskipped 2 AboutSection tests (version + feature list) using container.textContent matchers. Coverage: 69.4% → 79.0% (full src/). Threshold bumped 66→76 (stmts). Tests: 1090 → 1148 (+58). All typecheck + lint clean. --------- Co-authored-by: woshiguanxiaoliang <woshiguanxiaoliang@noreply.gitcode.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Reaches v1.1.0 roadmap target. Full-src coverage: 54.8% → 65.2% (+10.4pp).
New tests (77 total)
useFileTranscription.test.tsxuseHotkey.test.tsxuseModelStatus.test.tsxsettings-panel.test.tsxeffects-layer-component.test.tsxui-components.test.tsxCoverage progress
Verification