Skip to content

Add unit tests for untested utility modules #477

Closed

Description

@RounakKumarAgarwal

Several utility modules under src/utils/ have no test coverage despite containing pure, testable logic:

  • net.ts — isLoopbackAddress, getAuthHeaders, getLanIp (interface-selection scoring)
  • i18n.ts — the t() translation helper (lookup, param interpolation)

This issue covers two things:

  1. Add unit tests for the above untested utilities.
  2. Group all test files under a common top-level tests/ directory (mirroring the source layout), so tests live in one place instead of scattered next to source.

Assigned to me in Discord

Activity

  1. github-actions commented on Nov 15, 2026

    @github-actions

    Discussions are carried on Discord.

    Instead of commenting here, go to the Discord channel.

  2. RounakKumarAgarwal commented on Nov 15, 2026

    @RounakKumarAgarwal
    ContributorAuthor

    @PinJinx can i get assigned for this issue?

  3. PinJinx commented on Nov 15, 2026

    @PinJinx
    Contributor

    Could you update the issue to cover grouping all the tests under a common folder as we discussed you can add that as well to the PR.

  4. RounakKumarAgarwal commented on Nov 15, 2026

    @RounakKumarAgarwal
    ContributorAuthor

    Could you update the issue to cover grouping all the tests under a common folder as we discussed you can add that as well to the PR.

    Sure will do, thanks

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

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions