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

test: add coverage for exit function #1142

Merged
merged 1 commit into from
Nov 12, 2023
Merged

test: add coverage for exit function #1142

merged 1 commit into from
Nov 12, 2023

Conversation

nfischer
Copy link
Member

This adds test coverage for the shell.exit() function. This also refactors how we mock stdout/stderr and adds support for mocking process.exit() (which was needed for this change).

While I was writing these tests, I realized there was an edge case I missed in PR #1122. This change fixes that edge case.

Issue #1013

This adds test coverage for the shell.exit() function. This also
refactors how we mock stdout/stderr and adds support for mocking
process.exit() (which was needed for this change).

While I was writing these tests, I realized there was an edge case I
missed in PR #1122. This change fixes that edge case.

Issue #1013
Copy link

codecov bot commented Nov 12, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Files Coverage Δ
shell.js 100.00% <100.00%> (+30.76%) ⬆️

📢 Thoughts on this report? Let us know!

@nfischer nfischer merged commit 39ebb71 into master Nov 12, 2023
80 checks passed
@nfischer nfischer deleted the test-shell-exit branch November 12, 2023 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant