@types/jest issue with expect(function()).reject.toThrow() #53902
Unanswered
trololol91
asked this question in
Issues with a @types package
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
🐛 Bug Report
Using
rejects
does not work. Getting error Property 'rejects' does not exist on type 'Matchers<Promise>'.https://jestjs.io/docs/tutorial-async#rejects
To Reproduce
Steps to reproduce the behavior:
Outputs:
Property 'rejects' does not exist on type 'Matchers<void>'.
Expected behavior
Test should pass and not output errors
envinfo
Beta Was this translation helpful? Give feedback.
All reactions