Skip to content

Preserve AggregateError nested errors in reporter output#40864

Open
charliesheh wants to merge 1 commit into
microsoft:mainfrom
charliesheh:fix-aggregate-error-reporter-output
Open

Preserve AggregateError nested errors in reporter output#40864
charliesheh wants to merge 1 commit into
microsoft:mainfrom
charliesheh:fix-aggregate-error-reporter-output

Conversation

@charliesheh
Copy link
Copy Markdown

Summary
Preserve AggregateError.errors[] entries when filtering and serializing stack traces for reporter output.
Previously, filterStackTrace() recursively preserved error.cause, but omitted nested errors contained in AggregateError.errors[].

Changes

  • Added recursive serialization support for AggregateError.errors[]
  • Preserved nested aggregate sub-errors in reporter output
  • Added regression coverage in reporter-base.spec.ts

Testing

  • npm run build
  • npm run ttest -- tests/playwright-test/reporter-base.spec.ts

@charliesheh
Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

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.

1 participant