Skip to content

test: add --ca-cert coverage to validate.test.ts #511

Description

@sonukapoor

PR #464 added unit tests for src/cli/validate.ts but missed the --ca-cert validation branch (lines 29–35). Two cases need to be added:

  • Throws with a --ca-cert: prefix when the cert file does not exist or is invalid
  • Does not throw when --ca-cert is not set

The ca-cert validation delegates to validateCaCertFile, so only the error-wrapping behaviour needs to be exercised here, not the file-read internals.

Metadata

Metadata

Labels

first-timers-onlyReserved for contributors making their first contribution to this projectgood first issueGood for newcomers

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions