Spelunking Through Components With Enzyme's Dive
Last updated
Was this helpful?
Last updated
Was this helpful?
Most of the components we write have other components nested in them.
If we are to , we'll only see things one layer deep:
If we'd like to explore a particular child of the rendered component further, we can do a little and .
This allows us to make pinpoint assertions about how our components render without mounting the entire thing.
See a .
h/t Vidal Ekechukwu