Skip to content

test: reach 80% coverage threshold in services/web #3340

Description

@ascariandrea

Current state

Currently 0% — the only spec file is a static code-inspection test (reads file contents with `fs.readFileSync`; no source paths are instrumented). Thresholds are set to 0% as a placeholder.

Metric Actual Target
Statements 0% 80%
Branches 0% 80%
Functions 0% 80%
Lines 0% 80%

Context

Coverage config was fixed in #3334 (`services/web/vitest.config.spec.ts` now has `coverage.include`). The threshold is intentionally 0% until real unit tests are added.

Recommended approach

  1. Add unit tests for server-side utilities, data-fetching helpers, and React hooks
  2. The static responsive-styles spec can remain as an integration sanity check
  3. Raise thresholds in `services/web/vitest.config.spec.ts` incrementally

How to check progress

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    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