Returns the wrapper's underlying nodes.
Array<ReactElement>
: The retrieved nodes.
function Test() {
return (
<div>
<span />
<span />
</div>
);
}
const wrapper = mount(<Test />);
expect(wrapper.find('span').getNodes()).to.have.lengthOf(2);