Skip to content

Conversation

@stephen-carter-at-sf
Copy link
Contributor

…tion fails

spyDisplay = new SpyDisplay();
dependencies = {
logEventListeners: [],
logEventListeners: [new LogEventDisplayer(spyDisplay)],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Took me forever to understand why this test wasn't producing the error messages in the display. Then I realized we do not have the log event listeners or progress listeners added. I only added in the log event listeners here - wasn't sure if the progress listeners would cause other tests to fail or not.

Comment on lines +538 to +544
if (displayEvents[4].type === DisplayEventType.LOG) {
return ansis.strip(displayEvents[4].data);
} else if (displayEvents[5].type === DisplayEventType.LOG) {
return ansis.strip(displayEvents[5].data);
} else {
return 'Could Not Get Specific Output';
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not a fan of how this test file assumes [4] is the output. It makes the test fragile. At some point we should improve this - but for now I'm just adding in some conditional code to account for the fact that there might be an error display event before the output display event.

@stephen-carter-at-sf stephen-carter-at-sf merged commit 6459c0f into dev Apr 1, 2025
12 checks passed
@stephen-carter-at-sf stephen-carter-at-sf deleted the sc/fixConfigCommand branch April 1, 2025 20:50
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.

3 participants