Skip to content

homayunmmdy/React-Testing-Mosh

Repository files navigation

Testing React Apps with React Testing Library

Screenshot 2025-05-22 181332

This repository contains my notes and code samples from the Testing React Apps with React Testing Library course by Mosh Hamedani.

📅 Course Timeline

  • Started: August 12, 2024
  • Completed: September 10, 2024

🎯 About the Course

This course provides an in-depth guide to testing React applications using React Testing Library along with tools like Vitest, Jest, and Mock Service Worker (MSW). It covers the full testing workflow—from fundamentals to advanced practices—ensuring your applications are reliable, maintainable, and production-ready.

Topics covered include:

  • Writing robust and maintainable tests with React Testing Library
  • Mocking API responses using MSW and generating mock data with @mswjs/data and @faker-js
  • Simulating user interactions in test environments
  • Testing advanced use cases: authentication, state management, and routing
  • Applying refactoring techniques to make code more testable and maintainable
  • Enforcing code quality with ESLint

💡 Why I Took This Course

I took this course to strengthen my front-end testing skills and ensure that my React applications are well-tested, reliable, and resilient to change. The practical, real-world scenarios helped me understand how to structure tests that reflect how users interact with apps—improving both the confidence in my code and its long-term maintainability.

📢 Note on Course Access

Due to international sanctions in Iran, I was unable to access the official Code With Mosh platform directly. I obtained the course through a third-party distributor and completed it in full. While I do not have an official certificate, I carefully followed all course content and documented my learning here.

For courses that included hands-on projects, the completed work is available in this repository. For others that were more theory-focused, I’ve included comprehensive notes, summaries, and all relevant materials as evidence of completion and understanding.

About

A comprehensive A-Z guide to testing React apps with React Testing Libarary and Vitest

Topics

Resources

Stars

Watchers

Forks

Languages