-
Hi guys, I'm a junior dev just getting into the big bad world of testing. I have made the following test:
Which results in the following error: So I understand how to fix the issue fine by installing |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Nevermind, solved my problem. If I destructure the return value from the render function of
I no longer get the error. Only thing is, I can't say I fully understand why the type of the input to userEvent.type changes the need for a required package to be installed if the function's code still has it as required. |
Beta Was this translation helpful? Give feedback.
Nevermind, solved my problem. If I destructure the return value from the render function of
@testing-library/react
for mygetbyRole
function, rather than from screen, like below:I no longer get the error. Only thing is, I can't say I fully understand why the type of the…