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
Metadata
Metadata
Assignees
Labels
No labels