All in One Offer! | Access Unlimited Courses in any category starting at just $29. Signup today. Offer Ends in: 17 Days!

Browse Library

Get Unlimited Learning Access
$29
17 days left at this price!
30-Day Money-Back Guarantee

It Includes

  • Get Full Access to the platform
  • Access to 16000+ online courses
  • Play & Pause Course Viewing
  • Attend weekly live webinar
  • High Quality Recorded Lectures
  • Learn Online from Mobile/PC/Tablet
  • Assignments & Projects
  • Online iLab Access
  • Certificate of Completion
  • Download for offline viewing
  • Cancel Anytime
$29
  • The principles of TDD
  • Know what React Testing Library is and its differences with Enzyme
  • Understand how Jest works with React Testing Library
  • Query elements with getBy, queryBy, findBy, getAllBy, queryAllBy, findAllBy
  • Simulate user interaction with the fireEvent and userEvent API
  • Learn about coverage and debugging
  • How to mock third party libraries like Axios
  • How to use Typescript with a React App

Welcome to testing React components with React Testing Library! In this course, you will learn lots of things. You will learn:

  • The principles of Test Driven Development

  • Know what is React Testing Library (RTL) and its differences with Enzyme (another popular test framework for React)

  • Understand how Create React App (CRA) works.

  • Understand how Jest works with RTL

  • How to test with RTL and query elements with:

    • getBy, queryBy, findBy, getAllBy, queryAllBy, findAllBy

  • How to simulate user interaction with the fireEvent API

  • How to simulate user interaction with the userEvent API

  • Testing components in isolation (unit tests)

  • Learn about coverage and debugging

  • How to mock 3rd party libraries like Axios and mock a GET request

  • Learn about the pitfalls of CRA

You will have all the fundamental tools to test any React component and have that coverage at 100%!

Have fun, and never stop learning!

  • Be familiarized with React components
  • Web developers
  • Full stack developers
  • Developers interested in TDD
  • Frontend developers
View More...
  • Section 1 : Introduction 2 Lectures 00:13:24

    • Lecture 1 :
    • Lecture 2 :
    • Introduction to RTL
  • Section 2 : Create React App 1 Lectures 00:08:49

    • Lecture 1 :
    • Create React App behind the scenes
  • Section 3 : Jest 2 Lectures 00:16:08

    • Lecture 1 :
    • Understanding Jest
    • Lecture 2 :
    • Writing our first test
  • Section 4 : React Testing Library 11 Lectures 01:25:38

    • Lecture 1 :
    • Rendering a component with RTL
    • Lecture 2 :
    • Selecting elements with getByText
    • Lecture 3 :
    • Selecting elements with getByRole
    • Lecture 4 :
    • queryBy search variant
    • Lecture 5 :
    • findBy search variant (part 1)
    • Lecture 6 :
    • findBy search variant (part 2)
    • Lecture 7 :
    • findBy search variant (part 3)
    • Lecture 8 :
    • Querying multiple elements
    • Lecture 9 :
    • User interaction with the fireEvent function
    • Lecture 10 :
    • User interaction with the user event API
    • Lecture 11 :
    • Testing a component in isolation with the user event API
  • Section 5 : Coverage and debugging 2 Lectures 00:11:40

    • Lecture 1 :
    • Coverage
    • Lecture 2 :
    • Debugging
  • Section 6 : A more complex example 2 Lectures 00:21:27

    • Lecture 1 :
    • Creating a Pokemon component
    • Lecture 2 :
    • Testing the Pokemon component
  • Section 7 : More custom matchers 1 Lectures 00:01:41

    • Lecture 1 :
    • Jest DOM library from RTL
  • How do i access the course after purchase?

    It's simple. When you sign up, you'll immediately have unlimited viewing of thousands of expert courses, paths to guide your learning, tools to measure your skills and hands-on resources like exercise files. There’s no limit on what you can learn and you can cancel at any time.
  • Are these video based online self-learning courses?

    Yes. All of the courses comes with online video based lectures created by certified instructors. Instructors have crafted these courses with a blend of high quality interactive videos, lectures, quizzes & real world projects to give you an indepth knowledge about the topic.
  • Can i play & pause the course as per my convenience?

    Yes absolutely & thats one of the advantage of self-paced courses. You can anytime pause or resume the course & come back & forth from one lecture to another lecture, play the videos mulitple times & so on.
  • How do i contact the instructor for any doubts or questions?

    Most of these courses have general questions & answers already covered within the course lectures. However, if you need any further help from the instructor, you can use the inbuilt Chat with Instructor option to send a message to an instructor & they will reply you within 24 hours. You can ask as many questions as you want.
  • Do i need a pc to access the course or can i do it on mobile & tablet as well?

    Brilliant question? Isn't it? You can access the courses on any device like PC, Mobile, Tablet & even on a smart tv. For mobile & a tablet you can download the Learnfly android or an iOS app. If mobile app is not available in your country, you can access the course directly by visting our website, its fully mobile friendly.
  • Do i get any certificate for the courses?

    Yes. Once you complete any course on our platform along with provided assessments by the instructor, you will be eligble to get certificate of course completion.
  • For how long can i access my course on the platform?

    You require an active subscription to access courses on our platform. If your subscription is active, you can access any course on our platform with no restrictions.
  • Is there any free trial?

    Currently, we do not offer any free trial.
  • Can i cancel anytime?

    Yes, you can cancel your subscription at any time. Your subscription will auto-renew until you cancel, but why would you want to?

David Armendariz,

Hi! My name is David Armendariz and I am a software developer and mathematician. I have experience working as a Full Stack developer in different projects and I am myself a curious mind that tries to teach what I learn on a daily basis.
View More...
  • the-extreme-web-development-course

    The Extreme Web Development Course

    By : Paul Carlo Tordecilla

    Lecture 124 Beginner Level 4:26:22
  • develop-your-own-chrome-extension-firefox-plugin

    Develop your own Chrome Extension &...

    By : Harshit Srivastava

    Lecture 15 Beginner Level 2:1:54
  • the-ultimate-codeigniter-3-course

    The Ultimate Codeigniter 3 Course

    By : Paul Carlo Tordecilla

    Lecture 23 Beginner Level 2:17:35
  • superb-advance-javascript-become-javascript-professional

    Superb Advance Javascript - Become ...

    By : Paul Carlo Tordecilla

    Lecture 28 Beginner Level 1:28:39
  • application-development-with-ibm-watson

    Application development with IBM Wa...

    By : Harshit Srivastava

    Lecture 14 Intermediate Level 1:42:29
  • learn-react-16-and-redux-by-building-real-world-application

    Learn React 16 and Redux by buildin...

    By : Haider Malik

    Lecture 74 Beginner Level 6:46:11
Signup & Continue Checkout
By signing up, you agree to our Terms of Use and Privacy Policy
Create New Password
Enter your email address and we'll send you a link to reset your password.