fbpx
Please review Big Nerd Ranch's Training Updates for COVID-19 View updates

Testing React Web Applications

This 4-hour workshop teaches you the fundamentals of testing your React application with React Testing Library (RTL).

No events to show

Description

React lets you create user interfaces of incredible complexity—so complex that you can’t test them by hand indefinitely. As your app grows, you need a test suite that will keep you safe from mistakes while enabling you to continually change your app to meet the needs of the business. This 4-hour workshop teaches you the fundamentals of testing your React application with React Testing Library (RTL).

Who should take this class?

Prerequisites:

  • Experience building React web applications

  • Familiarity with Jest or Mocha test runners

What you'll learn:

  • The mental model for designing tests to avoid over-coupling and untestable code

  • Approaches to query elements from the virtual DOM, and the tradeoffs of each

  • About the relationship between example-based tests, Jest snapshot tests, and testing appearance

  • User interaction with RTL’s companion library, user-event

  • How to deal with asynchronous functionality and errors in RTL tests

  • How to think about mocking to make it easy to mock any dependency

  • Best practices regarding how to organize your tests to get better feedback and fewer false negatives

Not Happy with Your Current App, or Digital Product?

Submit your event

Let's Discuss Your Project

Let's Discuss Your Project