Test a React Component that renders a list with react-testing-library

preview_player
Показать описание
Got this question on my AMA and thought it'd be great for a devtip!

Рекомендации по теме
Комментарии
Автор

Love your stuff Kent! Invaluable. Checking if you've posted anything has quickly become a daily habit of mine.

cody
Автор

Wow thank you so much for answering my question 🤗 I was a little bummed, that I couldn‘t provide any code so you had to do all the examples by yourself. But you answered this question so well, you were spot on with my problem! 🙏🏻🕊

peterborinski
Автор

Thank u for this awesome video and effort

AbhishekKumar-mqtt
Автор

Hey Kent. Loved your work. Needed one help, how do we test a callback function(returns JS.element) in react testing library.

madhuppandey
Автор

What is the song name in the beginning

seyolas
Автор

I trying to do that but using styled components and nextjs... My test is rendering a self close component and it should render a complete one with children, because I'm searching for the children, because of that the getAllByTestId does not work... I don know what to do, I did the same you've done.

rodolphonetto
Автор

Hi Kent,
Could you make a video on testing 'ag-grid react' using RTL...?? :)

User-kglx
welcome to shbcf.ru