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
I would expect non-Error exceptions to be formatted as such. This is a valid coding pattern. E.g. React will throw a Promise in the proposed Suspense API.
The text was updated successfully, but these errors were encountered:
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.
Do you want to request a feature or report a bug?
feature that is in jasmine since v2.6
What is the current behavior?
When a non-error is
throw
n,jest-jasmine2
turns it into"[Object object]"
, making it hard to debug. See https://github.com/facebook/jest/blob/1a51672c7597d900953a0b95e4430e65eaa04259/packages/jest-jasmine2/src/jasmine/Env.js#L551-L554What is the expected behavior?
jasmine
has this code: jasmine/jasmine@8807bbb#diff-f41e57b2889bae3046aa9f352699785cI would expect non-Error exceptions to be formatted as such. This is a valid coding pattern. E.g. React will throw a Promise in the proposed Suspense API.
The text was updated successfully, but these errors were encountered: