DEV Community

Discussion on: Testing Forms in React using Enzyme and Jest

Collapse
za profile image
Zach

wrapper = Enzyme.mount(Enzyme.shallow(<NewPost />).get(0))
Why wrap the call to shallow with the call to mount?