Closed
Description
react-hooks-testing-library
version: 5.0.2react
version: 17.0.1react-dom
version (if applicable): 17.0.1react-test-renderer
version (if applicable):17.0.1node
version:14.13.1npm
(oryarn
) version:1.22.5
Relevant code or config:
expect(result.error).toBe(null);
What you did:
Directly after the renderHooks() line with a function that throws a Promise
What happened:
Reproduction:
result.error just after a hook that suspends (don't await the resolution of suspense).
result.current was fixed in dc21e59 but result.error was not.
Problem description:
Suspense is the most important use of this library
Suggested solution:
Do the thing in dc21e59 but apply to all members