Shallow Rendering: shallowRenderer.render()
ShallowRenderer.render() is similar to ReactDOM.render() but it doesn’t require DOM and only renders a single level deep, this means you can test components isolated from how their children are implemented.
Related concepts
→
shallowRenderer.render()
→
Semantic portal