Returns whether or not the current component returns one of the allowed falsy values: false
or null
.
Boolean
: whether the return is falsy
function Foo() {
return null;
}
const wrapper = shallow(<Foo />);
expect(wrapper.isEmptyRender()).to.equal(true);