See the issue and the test case with original fix in https://github.com/facebook/react/pull/14802.

We'll need to fix it properly, see https://github.com/facebook/react/pull/14802#issuecomment-463277621.
return <div />;
      }
    }
    const shallowRenderer = createRenderer();
    shallowRenderer.render(<SomeComponent />);
    shallowRenderer.unmount();
    expect(componentWillUnmount).toBeCalled();
  });
  it('can shallow render to null', () => {
    class SomeComponent extends React.Component {
      render() {
        return null;
      }
    }
    const shallowRenderer = createRenderer();
    const result = shallowRenderer.render(<SomeComponent />);
    expect(result).toBe(null);
  });
  it('can shallow render with a ref', () => {
    class SomeComponent extends React.Component {
      render() {
        return <div ref="hello" />;
      }
    }
    const shallowRenderer = createRenderer();
    
    shallowRenderer.render(<SomeComponent />);
  });
  it('lets you update shallowly rendered components', () => {
    class SomeComponent extends React.Component {