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

chore(smoke-tests): always return stdout and stderr from npm spawn #7256

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

lukekarrys
Copy link
Contributor

@lukekarrys lukekarrys commented Feb 27, 2024

smoke-tests use a helper function to spawn local npm commands and get their output. Previously it would only return stdout by default unless requested to make it easier to make assertions. This proved to be a bad choice by me since it added indirection and made unrelated PRs like #7158 fail with hard to debug output.

This PR makes the helper function always return { stdout, stderr } and updates all call sites to use res.stdout where necessary.

@lukekarrys lukekarrys requested a review from a team as a code owner February 27, 2024 19:52
@lukekarrys lukekarrys merged commit a530215 into latest Feb 27, 2024
17 checks passed
@lukekarrys lukekarrys deleted the lk/smoke-test-spawn-output branch February 27, 2024 20:01
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