getDOMNode() · Enzyme (original) (raw)

.getDOMNode() => DOMComponent

Returns the outer most DOMComponent of the current wrapper.

Notes:

Returns

DOMComponent: The retrieved DOM component.

Examples

const wrapper = mount(<MyComponent />);
expect(wrapper.getDOMNode()).to.have.property('className');