You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To improve debugging experience, I propose to properly display errors that are of AggregateError type. This was also raised by @SimenB in #12999.
Motivation
As of Jest 29.7.0, errors of AggregateError type is displayed like this:
AggregateError:
at Function.Object.<anonymous>.AxiosError.from (../../node_modules/axios/lib/core/AxiosError.js:89:14)
at RedirectableRequest.handleRequestError (../../node_modules/axios/lib/adapters/http.js:606:25)
at ClientRequest.eventHandlers.<computed> (../../node_modules/follow-redirects/index.js:14:24)
Cause:
AggregateError:
This is not very helpful because the pertinent error information exists in the errors property.
Example
No response
Pitch
N/A
The text was updated successfully, but these errors were encountered:
I can submit a PR for this enhancement if blessed to proceed. Also, would be helpful to know if there is a desired output format for the aggregated errors. Many thanks!
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
🚀 Feature Proposal
To improve debugging experience, I propose to properly display errors that are of
AggregateError
type. This was also raised by @SimenB in #12999.Motivation
As of Jest 29.7.0, errors of
AggregateError
type is displayed like this:This is not very helpful because the pertinent error information exists in the
errors
property.Example
No response
Pitch
N/A
The text was updated successfully, but these errors were encountered: