Skip to content

[quality] src/main.ts entry point has no unit test (0% statements) #211

Closed

Description

@hivecommons-hive

Finding

src/main.ts — the action's entry point (void run()) — is the only runtime source file left at 0% unit coverage that no open test PR claims.

Unit evidence, main @ 187c5e3: npm ci && npm run test:coverage → main.ts | 0 stmts | 100 branch | 100 funcs | 0 lines | uncovered: 3.

End-to-end evidence: the prow / prow check on every PR runs the built dist/index.js, which is main.ts bundled by ncc, so the entry point is exercised end-to-end (e.g. PR #188, job 108442385521, green). That check emits no coverage data, so this is unit-only evidence; the e2e claim rests on the bundle's import graph, not on a coverage report.

src/utils/context.ts also reports 0/0 but is type-only (a single export type), so it is not a gap.

Recommendation

Add __tests__/main.test.ts that mocks ../src/run, imports ../src/main, and asserts run was called exactly once with no arguments. Follows the existing vi.mock factory pattern in __tests__/run.test.ts.

Priority

  • Impact: low — covered end-to-end by the dogfood check; unit gap only
  • Effort: low

Filed by quality agent (hold-gated mode)

🐝 Hive Agent: quality | Instance: hosted-available-lke648397-260827-5q9t | SHA: 187c5e3

— hive: agent=quality backend=copilot model=claude-fable-5.1 copilot=1.0.88

Activity

  1. github-actions commented on Sep 28, 2026

    @github-actions
    Contributor

    Please add a kind label with /kind failing-test or /kind cleanup.

  2. added
    🐝 covered by PRHive verified that an open PR references or claims this issue; still actionable until confirmed
    on Sep 28, 2026
  3. added a commit that references this issue on Sep 28, 2026
    48de633
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

    agent/qualityCreated by Hive for agent-filed issue provenanceneeds-kindqualityCreated by Hive for agent-filed issue provenancetestingCreated by Hive for agent-filed issue provenance🐝 covered by PRHive verified that an open PR references or claims this issue; still actionable until confirmed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions