Fully Render React Components with Enzyme

InstructorTyler Clark

Share this video with your friends

Send Tweet

Full DOM rendering is ideal for use cases where you have components that interact with DOM APIs, or require React lifecycles. In this lesson we will render components with the mount method from Enzyme. We’ll pass through customized options to render our component differently.

Shazaib Ahmad
~ 6 years ago

jsdom is a bit confusing when ejected from create-react-app. As within create-react-app it listens to env=jsdom in the test script. How do you go about this when ejected? Is the setup any different?

Aleksandr Gorin
~ 5 years ago

We installed jsdom. And what is the next step? I didn't understand how can we use it. We even didn't import it in our test and didn't add it into config...