-
Notifications
You must be signed in to change notification settings - Fork 725
Closed
Description
Describe the feature you'd like:
When I want to test a situation that my tested hook throws an expected error I like I have the option to test it without hacking the test code.
It will be greeted if the implementation that actually done on that subject on react-hooks-testing-library will be implemented on @testing-library/react
Suggested implementation:
As describe here result.error
should be hold the throwing object and accessing to result.current
will should throw the error again
chanceaclark, anson-pro, fabien-thebaud-ariadnext, mwojslaw, romain-trotard and 9 more
Metadata
Metadata
Assignees
Labels
No labels