test: raise coverage to 70.67% (target: 95)#131
Open
mastermanas805 wants to merge 1 commit into
Open
Conversation
Adds 6 test files covering BlogPage, NotFoundPage, PrivacyPage, TermsPage,
UseCasesPage, and the SSE-over-fetch streamer (src/lib/sseStream.ts).
Coverage: 67.54% → 70.67% (src-only: ~76%).
33 new tests, all passing. Test count: 736 → 769.
Remaining gap: src/pages/{SettingsPage,DocsPage,LoginPage,CheckoutPage,
ContractsPage,AdminCustomersPage}.tsx are large (200-635 lines each) and
authenticated; full coverage requires more API mock plumbing than the
budget allowed. src/App.tsx + entry-server.tsx + scripts/prerender.mjs
are bootstrap/SSG paths exercised only by the e2e Playwright suite — not
addressable via vitest unit tests. Root-level files (playwright.config.ts,
e2e/fixtures.ts) count as 0% in the coverage table but are runtime-irrelevant.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
size-limit report 📦
|
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
src/lib/sseStream.ts).Why these targets
The 0%-covered files identified by the baseline vitest run included a mix of:
Test plan
npx vitest run- 50 files / 769 tests passnpx vitest run --coverage- confirms 70.67% line coverageRemaining gap to 95% is concentrated in the large authenticated-route pages; tracked for a follow-up.
Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com