Back to Enzyme

`.isEmptyRender() => Boolean`

docs/api/ReactWrapper/isEmptyRender.md

2.9.1336 B
Original Source

.isEmptyRender() => Boolean

Returns whether or not the wrapper would ultimately render only the allowed falsy values: false or null.

Returns

Boolean: whether the return is falsy

Example

jsx
function Foo() {
  return null;
}

const wrapper = mount(<Foo />);
expect(wrapper.isEmptyRender()).to.equal(true);