enzyme render

Difference between Shallow, Mount and render of Enzyme

wrap updates in act

To prepare a component for assertions, wrap the code rendering it and performing updates inside an act() call. This makes your test run closer to how React works in the browser.

enzyme dump html

Dump the current wrapper or results from find to console with .html()