Skip to content

fix(test): restore coverage threshold and add tests for #1298 - #1304

Open
Hikmaholadele wants to merge 2 commits into
LabsCrypt:mainfrom
Hikmaholadele:issue-1298
Open

fix(test): restore coverage threshold and add tests for #1298#1304
Hikmaholadele wants to merge 2 commits into
LabsCrypt:mainfrom
Hikmaholadele:issue-1298

Conversation

@Hikmaholadele

Copy link
Copy Markdown
Contributor

Closes #1298
Summary

  • Restore the frontend coverage threshold to at least the previous 20% level
  • Add meaningful tests for high-risk uncovered frontend code
  • Verify measured coverage meets the enforced threshold
  • Prevent coverage regressions from being addressed by lowering the quality gate

Testing

  • Ran the relevant frontend tests and coverage checks
  • Verified actual coverage meets the enforced threshold

Closes #1298

Hikmaholadele and others added 2 commits August 29, 2026 19:40
- Rename useIncomingStreams.test.ts → .tsx (JSX in .ts broke esbuild)
- Fix timeout in useIncomingStreams withdraw test with fake timers
- Add tests for lib/dashboard.ts: mapBackendStreamToFrontend,
  getDashboardAnalytics, dashboardQueryKey (16% → 59% lines)
- Add tests for lib/wallet.ts: toWalletErrorMessage,
  shortenPublicKey, formatNetwork, isExpectedNetwork (27% → 56% lines)
- Add tests for lib/logger.ts (60% → 100% lines)
- Coverage now 29.2% lines / 55.6% functions, above 20% threshold

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Audit] Frontend coverage threshold was quietly lowered instead of raising test coverage

1 participant