Same as https://github.com/facebook/react/issues/10103, but for the server renderer. You can look at implementation in https://github.com/facebook/react/pull/11168 and do something very similar in `ReactPartialRenderer.js`.
render() {
        return <div />;
      }
    }
    let instance = <Component />;
    expect(instance.forceUpdate).not.toBeDefined();
    instance = ReactDOM.render(instance, container);
    instance.forceUpdate();
    ReactDOM.unmountComponentAtNode(container);
    expect(() => instance.forceUpdate()).toWarnDev(
      'Can only update a mounted or mounting component. This usually means ' +
        'you called setState, replaceState, or forceUpdate on an unmounted ' +
        'component. This is a no-op.\n\nPlease check the code for the ' +
        'Component component.',
    );
    
    instance.forceUpdate();
  });
  it('should warn about `setState` on unmounted components', () => {
    const container = document.createElement('div');
    document.body.appendChild(container);
    let renders = 0;
    class Component extends React.Component {