Designing Effective Tests with React Testing Library
watch on portal.gitnation.org ↗https://portal.gitnation.org/contents/designing-effective-tests-with-react-testing-librarysummary
Covers using React Testing Library to write effective tests by focusing on the UI contract and rendered output, using the Screen API for assertions, choosing appropriate query methods, and confirming presence/absence of elements. Explains testing environment concerns including accessibility, how to test external functions and mock functions, organize tests and effects, handle asynchronous code and mock web service requests, and discusses benefits of test-driven development.
AI-written summary · about
related talks
24mUsing React Testing Library to Write Stronger Tests
32mEstablishing testing patterns with software design principles
53mTesting React Applications
26mTesting in React
19mImportance of testing & the right way to test React components
01h 00mTest Driving React Applications
18mTesting React in a Right Way
22mElizabeth Funk - An Introduction to React Testing Library