Testing React with Jest and React Testing Library (RTL) 2023
9 👀
Harry Potter

Harry Potter

Oct 27, 2023

Testing React with Jest and React Testing Library (RTL) 2023

Learn best practices for testing your apps with Jest and React Testing Library. All code written via TDD!

 

What you'll learn

  • Testing simple and complex React applications with React Testing Library
  • React Testing best Practices: how to test behavior instead of implementation
  • Making the most of Jest watch mode, including running only one file or test at a time
  • Common errors returned by Testing Library and how to correct them
  • Test-Driven Development: writing tests alongside production code, to ensure thorough test coverage

 

Requirements

  • Experience with JavaScript
  • Basic experience with React
  • Familiarity with React hooks and context (these are explained briefly in optional React portions of the course; however previous experience would be helpful)

Description

React Testing Library has become an extremely popular option for testing React, and with good reason! This detailed, comprehensive course provides a solid foundation for React app tests.

Best Practices

React Testing Library is famously opinionated about testing best practices, and is written to encourage these best practices. This course teaches:

  • testing behavior over testing implementation
  • tests that interact with your app the way a user would
  • finding elements by accessibility handles, to make sure your code is accessible as possible

Broad range of testing examples

The course apps start very with very simple examples (clicking a button to change its color) and work up to progressively more complicated testing concepts, such as: 

  • testing asynchronous page changes
  • simulating data from a server using Mock Service Worker
  • applying a context provider to a component when rendering

The course builds up to complex concepts gradually, in a way designed to support your learning and ensure your success.

Practice your new skills

You will also have plenty of opportunities to practice what you’ve learned. The course provides "code quizzes" while building the course projects, where you can apply what you learned and then watch a video to see the solution. The (optional) final section provides even more exercises to complete the second app and reinforce concepts from the course.

Optional React lectures

Any significant React code covered in the course is isolated into separate lectures. Students have a choice: those who want to reinforce their React skills (or learn new ones!) can watch those lectures, while students who feel confident in their React skills can skip them.

Supportive Instructor

The instructor has a proven track record of responding to course Q&A in a helpful and supportive way. She loves to engage with students, answer questions about course concepts, and help debug students' code for the course projects.

Who this course is for:

  • React coders who want to learn how to write functional tests for their apps
  • React application engineers who want confidence that writing code doesn't break existing behavior (tests, for the win!)

Instructor

Bonnie Schulkin

Teacher | Coder | Mediocre Bassist

  • 4.5 Instructor Rating
  • 13,097 Reviews
  • 83,133 Students
  • 11 Courses

My teaching career started when I played school with my (not very willing) younger brother as a kid. I gradually expanded my horizons to teaching (marginally) more willing high school students, and more recently have taught software development at various boot camps to delightfully willing adults. I have been working in the software industry on and off since the mid-90s, which predates the birth of many coders in the San Francisco tech scene(!).

 

4.5 course rating6K ratings

Rohith R.

Rating: 5.0 out of 5 3 days ago

 

Great teaching, Bonnie became one of my fav tutor here .... The course is must recommended for anyone trying Testing lib which I took it with minimum knowledge and I think I can work with it without any doubt, any clarifications would be cleared which many of tutors here are missing to do and leave you in space. Thank you ?

 

Shwe Y.

Rating: 5.0 out of 5 4 weeks ago

 

I really love this course! I’m carefully following all of Bonnie's advice and making sure not to just copy the code. This approach is helping me remember and understand better. I feel much more confident now. This course is good

 

Wait a second...

Watch 👉How to download video

Testing React with Jest 🔥
Zip/rar files password can be one of these :- FreeCourseUniverse OR CheapUniverse
Membership
Harry Potter

Harry Potter

Hey Guys We are Tech Enthusiasts and we know knowledge is key to success ! We are here to open path to your success by providing what you want. Today education == business. Our moto is education should be accessible by any person who is not able to purchase overpriced content.

Leave a comment

0 Comment

Membership

Membership Plans

We are bringing so many new things at the fraction of a cost....

    Download

    How to download ??

    Affiliate

    This site is hosted on Digital Ocean

    Get $200 credit Instantly

    Offer available for limited time
    ( Take advantage of free credits 👇 )
    DigitalOcean Referral Badge

    Related Posts

    Taken Down Resources

    Tags

    © 2023 CheapUniverse. All Rights Reserved