Open marcindulak opened 1 year ago
Having the exact same problem. In my own code as well as this example. I have tried almost everything
Using await in as in await userEvent...
, and making the function async helps to get rid of the errors.
Hey,
await made the example test code work. But I have been using await from the start in my code and even though I can see the output changes using screen.debug(). The mockhandler is still returning an empty array. I am completely stumped.
Thanks for your help
On Wed, 11 Jan 2023, 22:21 marcindulak, @.***> wrote:
Using await in as in await userEvent..., and making the function async helps to get rid of the errors.
— Reply to this email directly, view it on GitHub https://github.com/fullstack-hy2020/part2-notes/issues/82#issuecomment-1379221773, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZP2SVLUC624ETD36S55FSLWR3TZFANCNFSM6AAAAAATVZEO74 . You are receiving this because you commented.Message ID: @.***>
Output: