Skip to content

test: reach 80% vitest coverage thresholds across the monorepo #3341

Description

@ascariandrea

Goal

All packages and services should reach 80% vitest coverage (statements, branches, functions, lines). The thresholds are enforced in CI via PR #3334 — builds will fail until each package meets its target.

Sub-issues

Package / Service Stmts Branch Fns Lines Tracking issue
@liexp/ui 95.9% ✅ 85.2% ✅ 95.8% ✅ 97.9% ✅ — already passing
@liexp/shared 63.9% 58.9% 56.8% 63.5% #3335
@liexp/io 58.3% 100% ✅ 37.5% 65.0% #3336
@liexp/backend 20.6% 11.9% 12.3% 20.9% #3337
agent 85.9% ✅ 73.5% 96.8% ✅ 85.8% ✅ #3338
admin ~0% ~0% ~0% ~0% #3339
web 0% 0% 0% 0% #3340
api skipped (needs DB)
worker skipped (needs DB)

How to run coverage locally

# Single package
pnpm --filter @liexp/shared test:coverage

# All packages (excluding api/worker which need a DB)
pnpm --filter @liexp/ui test:coverage
pnpm --filter @liexp/shared test:coverage
pnpm --filter @liexp/io test:coverage
pnpm --filter @liexp/backend test:coverage
pnpm --filter agent test:coverage
pnpm --filter admin test:coverage
pnpm --filter web test:coverage

Related

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