Difference in methods emanating from screen and render - podcast episode cover

Difference in methods emanating from screen and render

Sep 03, 20215 minSeason 1Ep. 3
--:--
--:--
Download Metacast podcast app
Listen to this episode in Metacast mobile app
Don't just listen to podcasts. Learn from them with transcripts, summaries, and chapters for every episode. Skim, search, and bookmark insights. Learn more

Episode description

What’s the difference between `screen.getByText` and `const { getByText } = render()`
More generically - what’s the difference between methods originating from these different objects

Common mistakes with React Testing Library - Not Using Screen

For the best experience, listen in Metacast app for iOS or Android