DEV Community

Discussion on: Understanding React Testing Library

Collapse
amn3s1a2018 profile image
Amn3s1a2018

In the first sniplet you have small typos. There isn't altText variable nor getByAltText function, so the test will fail

Collapse
dhaiwat10 profile image
Dhaiwat Pandya Author

Corrected it. Thanks for pointing it out!