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
Describe the bug
Returning a rejected Promise inside the test function causes an unhandled Promise rejection
To Reproduce
See this notebook in RunKit for a reproduction of the issue.
Expected behavior
If the returned Promise is rejected, validate should also reject with the underlying error without raising an unhandledRejection exception. This is particularly problematic in Node 15 and on since unhandled rejections are no longer just a warning.
Platform (please complete the following information):
Node.js
Additional context
N/A
The text was updated successfully, but these errors were encountered:
Describe the bug
Returning a rejected Promise inside the test function causes an unhandled Promise rejection
To Reproduce
See this notebook in RunKit for a reproduction of the issue.
Expected behavior
If the returned Promise is rejected,
validate
should also reject with the underlying error without raising anunhandledRejection
exception. This is particularly problematic in Node 15 and on since unhandled rejections are no longer just a warning.Platform (please complete the following information):
Additional context
N/A
The text was updated successfully, but these errors were encountered: