Skip to content

[Testing] Raise backend coverage back to 60% and restore thresholds #533

@ogazboiz

Description

@ogazboiz

Join us on Telegram: https://t.me/+DOylgFv1jyJlNzM0

Why this matters

The backend coverage thresholds in backend/vitest.config.ts were 60% (added in #373) but the suite only covers ~50% of lines/statements and ~46% of functions, so the coverage gate failed every CI run regardless of test outcomes. As a stopgap the thresholds were lowered to a ratchet floor at current coverage so CI is green and can't regress. This issue tracks adding tests to climb back to 60% and restoring the thresholds.

Acceptance criteria

  • Add unit/integration tests to raise backend coverage to >= 60% statements, functions, and lines
  • Restore thresholds in backend/vitest.config.ts to 60 across the board
  • npx vitest run --coverage passes with the 60% thresholds
  • Prioritize the least-covered areas (controllers, services, workers)

Files to touch

  • backend/vitest.config.ts (restore thresholds)
  • new/expanded tests under backend/tests/ and backend/src/__tests__/

Out of scope

  • Frontend or contract coverage

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programbackendBackend related tasksgood first issueGood for newcomerstestingTesting related tasks

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions