Skip to content

fix: improve error handling for ariaSnapshot and fixture integrity#41502

Open
faisalaffan wants to merge 2 commits into
microsoft:mainfrom
faisalaffan:fix-error-handling
Open

fix: improve error handling for ariaSnapshot and fixture integrity#41502
faisalaffan wants to merge 2 commits into
microsoft:mainfrom
faisalaffan:fix-error-handling

Conversation

@faisalaffan

Copy link
Copy Markdown

Two small error-handling improvements:

  • ariaSnapshot: Replace empty catch {} with debugLogger.log(...) so AI snapshot failures during test errors are traceable
  • fixtureRunner: Replace console.error + silent _usages.clear() with throw new Error(...) — fixture integrity violations now fail fast instead of silently corrupting state

@faisalaffan faisalaffan marked this pull request as ready for review June 27, 2026 07:06
@Skn0tt

Skn0tt commented Jun 29, 2026

Copy link
Copy Markdown
Member

Please start with filing an issue.

@Skn0tt Skn0tt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

looks good, thank you.

console.error('Internal error: fixture integrity at', this._teardownDescription.title); // eslint-disable-line no-console
this._usages.clear();
}
if (this._usages.size !== 0)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

please drop this stray change - i'm not sure we're ready for asserting this.

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