Repository navigation
|
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 |
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. |
Nevermind, solved my problem. If I destructure the return value from the render function of
@testing-library/reactfor mygetbyRolefunction, 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…