Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

To Mock or Not to Mock - That's the Question

React Conferences by GitNation via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the intricacies of mocking in React testing during this 24-minute conference talk from React Advanced 2021. Delve into the age-old question of whether to mock components or use real ones in tests. Examine the pros and cons of using spies and stubs versus testing with actual components, considering factors such as test reliability, performance, and code validation. Gain insights into best practices for writing effective React tests and learn how to navigate the challenges of timeouts and complex component interactions. Discover strategies to strike the right balance between mocked and real components in your testing approach, ultimately improving the quality and maintainability of your React applications.

Syllabus

To Mock or Not to Mock - That's the Question - Rita Castro, React Advanced 2021

Taught by

React Conferences by GitNation

Reviews

Start your review of To Mock or Not to Mock - That's the Question

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.