how to check the actual DOM node using react enzyme

njorlsaga picture njorlsaga · Jun 9, 2016 · Viewed 26.6k times · Source

Is there a way to get the actual DOM node so I can the query it with the Dom api as opposed to being required to use enzyme's api, it's just for edge cases where for example I need to assert things about the dom node itself.

Answer

tonyjmnz picture tonyjmnz · Jan 13, 2017

You can use wrapper.getDOMNode()

Enzyme docs