Closed
Description
Example: https://runkit.com/aduth/5f5e53aa8ef9ae0013364071
The default value for suppressErrors
(true
) is only assigned if no options
parameter is assigned:
This means if a developer passes options
(either an empty object, or with timeout
), any errors thrown during wait
will not be suppressed.
preact-hooks-testing-library/src/asyncUtils.ts
Lines 51 to 52 in 9badbd2
@testing-library/react-hooks
addresses this by assigning default value during destructuring of the options:
Metadata
Metadata
Assignees
Labels
No labels