We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
toNotThrow
expect(() => foo()).toNotThrow
fails when foo throws, but it doesn't tell me what error foo threw. This would be really useful for debugging. I'm happy to make a PR :)
foo
PS: I'm also happy to try to help out more if you need help with this module :)
The text was updated successfully, but these errors were encountered:
I think this is fixed in expect@21 (maintained by Jest). : )
Sorry, something went wrong.
@jackfranklin thanks, that'd be a great addition to expect v1 (v21+ is now maintained by jest, but we'll still publish releases of 1.x)
Is toNotThrow still available? I can't find it in the docs.
https://jestjs.io/docs/en/expect.html
@jcollum those docs cover v21+. This repo is for < v21.
No branches or pull requests
fails when
foo
throws, but it doesn't tell me what errorfoo
threw. This would be really useful for debugging. I'm happy to make a PR :)PS: I'm also happy to try to help out more if you need help with this module :)
The text was updated successfully, but these errors were encountered: