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
Async assertions must be awaited or returned. (jest/valid-expect)
upon the following code (just the second clause of ternary operators):
The script is included in my config's setupAfterEnv list.
The error is obviously either
I'm an idiot
Those are being returned and its a bug
The extensions are just a shortcut macro to have rejects and resolves for any value. As you can see, this can already done with expect(...).resolves.not.toThrow(), and the converse.
The text was updated successfully, but these errors were encountered:
Eslint is giving me this error:
upon the following code (just the second clause of ternary operators):
The script is included in my config's
setupAfterEnv
list.The error is obviously either
The extensions are just a shortcut macro to have
rejects
andresolves
for any value. As you can see, this can already done withexpect(...).resolves.not.toThrow()
, and the converse.The text was updated successfully, but these errors were encountered: