Skip to content

test: reach 80% coverage threshold in services/agent #3338

Description

@ascariandrea

Current state

Metric Actual Target
Statements 85.9% 80% ✅
Branches 73.5% 80%
Functions 96.8% 80% ✅
Lines 85.8% 80% ✅

Context

The 80% threshold is enforced in services/agent/vitest.config.spec.ts as part of #3334. Only branch coverage is below the threshold.

Focus areas

  • Identify branches (conditionals, optional chains, early returns) not covered by current tests
  • Run `pnpm --filter agent test:coverage` and inspect the HTML report for uncovered branches

How to check progress

```bash
pnpm --filter agent test:coverage
```

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions