Skip to content

Add tests for --allow-host-ports validation #498

@Mossaka

Description

@Mossaka

Priority: P1 - High

Description

Add unit tests for --allow-host-ports validation:

  • Error when used without --enable-host-access
  • Valid port format parsing
  • Port range parsing (e.g., 3000-3010)

Current Test Coverage

  • No validation tests exist for this flag

Acceptance Criteria

  • Unit tests added to src/cli.test.ts
  • Tests verify error messages match expected text
  • All edge cases covered

Files to Modify

  • src/cli.test.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions