The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

React Testing: Element types with Shallow Rendering

React Testing: Element types with Shallow Rendering

1:09
When you render a component with the Shallow Renderer, you have access to the underlying object. We can write lots of useful tests to check that our components are working as expected. In this lesson, we will use the `type` property on the shallow rendered component to make sure that the root element is what we expect it to be.
Watch this lesson now
Avatar
egghead.io

When you render a component with the Shallow Renderer, you have access to the underlying object. We can write lots of useful tests to check that our components are working as expected. In this lesson, we will use the type property on the shallow rendered component to make sure that the root element is what we expect it to be.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?