Returns the wrapper's underlying node.
ReactElement
: The retrieved node.
class Test extends React.Component {
render() {
return (
<div>
<span />
<span />
</div>
);
}
}
const wrapper = mount(<Test />);
expect(wrapper.getNode()).to.be.an.instanceof(Test);