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
Computer Vision: The FundamentalsUniversity of California, Berkeley via Coursera Programming Languages
University of Virginia via Udacity Learn to Program: Crafting Quality Code
University of Toronto via Coursera Computational Photography
Georgia Institute of Technology via Coursera Algorithms: Design and Analysis, Part 2
Stanford University via Coursera