React Testing Tutorial - 30 - queryBy

preview_player
Показать описание

📱 Follow Codevolution

queryBy
React Testing Tutorial
React Testing with Jest and React Testing Library
Рекомендации по теме
Комментарии
Автор

Respect to the way you teach. It is not about how much knowledge you have (I'm sure you have a lot of it), it is about how you convey it. Bravo!

bostongreen
Автор

Happy Teachers Day Vishwas Ji, Thank you so much for your trainings

ariseawake
Автор

Thank you for the explanation. It seems the queryBy method is safer and forces you to explicitly make assertions whereas the getBy query doesn't necessarily require you to make the assertions

christiannwodo
Автор

Since queryByRole returns null where button does not found, I used toBeNull and it works fine:


hostname