Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cli testable #24

Merged
merged 6 commits into from
Oct 3, 2021
Merged

Cli testable #24

merged 6 commits into from
Oct 3, 2021

Conversation

hildjj
Copy link
Owner

@hildjj hildjj commented Oct 3, 2021

Refactor the CLI into a testable file in lib/cli.js, and have the binary just be a thin wrapper that does process.exit(1) on errors

Mock all of the TLS server tests so that no network is needed for testing.

@hildjj
Copy link
Owner Author

hildjj commented Oct 3, 2021

Fixes #5

@hildjj hildjj merged commit 5c7edbf into main Oct 3, 2021
@hildjj hildjj deleted the cli-testable branch October 3, 2021 12:14
@hildjj hildjj mentioned this pull request Oct 3, 2021
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