1×
Become a member
to unlock all features
Autoplay

    Set Up Tests that Render a React Component with Jest and Babel

    jestJest

    Testing a React component takes a little more configuration than a test for standard JavaScript. In this lesson, we’ll install and configure react-testing-library and jest-dom matchers, create a test that renders our App component and configure it all to work properly with Babel 7 and dynamic import syntax.