To Mock or Not to Mock - That's the Question
Offered By: React Conferences by GitNation via YouTube
Course Description
Overview
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
Related Courses
Software as a ServiceUniversity of California, Berkeley via Coursera Intro to Computer Science
University of Virginia via Udacity Web Development
Udacity Software Engineering for SaaS
University of California, Berkeley via Coursera CS50's Introduction to Computer Science
Harvard University via edX