Skip to content

Add SSH config parser tests#3

Open
quiloos39 wants to merge 1 commit intomainfrom
add-config-parser-tests
Open

Add SSH config parser tests#3
quiloos39 wants to merge 1 commit intomainfrom
add-config-parser-tests

Conversation

@quiloos39
Copy link
Owner

@quiloos39 quiloos39 commented Feb 16, 2026

Summary

  • Add 16 tests for buildConnectConfig() and expandTilde() in src/config.ts
  • Covers tilde expansion, default values (port 22, username, keepalive, readyTimeout), explicit parameter overrides, auth priority (password > key > agent), SSH agent fallback, and host resolution passthrough

Test plan

  • Run node --import tsx --test tests/config-parser.test.ts and verify all 16 tests pass
  • Verify auth priority matches documented order: explicit password > explicit key > SSH config IdentityFile > SSH agent

@quiloos39 quiloos39 changed the title Add SSH config parser tests\n\nAdds tests for SSH config resolution including tilde expansion, default values, explicit parameter overrides, auth priority (password > key > agent), and SSH agent fallback behavior. Add SSH config parser tests Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant