Skip to content

Conversation

@iclanton
Copy link
Member

Summary

Add a getAllOutput function to StringBufferTerminalProvider that returns an object containing all output severities.

How it was tested

Updated a bunch of tests.

Impacted documentation

None.

@github-project-automation github-project-automation bot moved this to Needs triage in Bug Triage Dec 29, 2025
@iclanton iclanton enabled auto-merge (squash) December 29, 2025 21:14
@iclanton iclanton changed the title [Terminal] Improve StringBufferTerminalProvider snapshot testing ergonomics. [Terminal] Improve StringBufferTerminalProvider snapshot testing ergonomics. Dec 29, 2025
@iclanton iclanton force-pushed the StringBufferTerminalProvider-snapshot-ergonomics branch from e527f3c to 0964230 Compare December 29, 2025 21:48
/**
* @beta
*/
export interface IAllStringBufferOutput {
Copy link
Contributor

Choose a reason for hiding this comment

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

This model is incomplete and allows drift in real-world output without breaking snapshots. We should really just buffer the raw chunks in sequence, merging consecutive chunks of the same severity, and run snapshots against that. It's rather important for our snapshot tests to capture the relative ordering of chunks of different severities, since that reflects what the user sees.

Copy link
Member Author

@iclanton iclanton Dec 29, 2025

Choose a reason for hiding this comment

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

True, but this isn't a change to what currently exists. That would be a different testing API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Needs triage

Development

Successfully merging this pull request may close these issues.

2 participants