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

Refactor test helpers for the verbose option #1128

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

ehmicky
Copy link
Collaborator

@ehmicky ehmicky commented Jun 19, 2024

This PR refactors the tests and test helpers related to the verbose option.

Those tests rely on spawning Execa within Execa itself, in order to retrieve the verbose logs. Those "nested" spawns are a little tricky and have specific test helpers.

This PR improves those test helpers by using the new IPC methods.

It only refactors, simplifies the code, and adds a few more tests.

@sindresorhus sindresorhus merged commit 18d320f into main Jun 19, 2024
14 checks passed
@sindresorhus sindresorhus deleted the refactor-nested-tests branch June 19, 2024 13:31
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.

2 participants