Returns a CheerioWrapper around the rendered HTML of the single node's subtree. It must be a single-node wrapper.
CheerioWrapper
: The resulting Cheerio object
function Foo() { return (<div className="in-foo" />); }
function Bar() { return ( <div className="in-bar"> <Foo /> </div> ); }
const wrapper = mount(<Bar />); expect(wrapper.find(Foo).render().find('.in-foo')).to.have.lengthOf(1);
© 2015 Airbnb, Inc.
Licensed under the MIT License.
https://airbnb.io/enzyme/docs/api/ReactWrapper/render.html