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`.
state = {value: 0};
      componentWillUnmount() {
        expect(() => {
          this.setState({value: 2}, function() {
            cbCalled = true;
          });
        }).not.toThrow();
      }
      render() {
        return <div />;
      }
    }
    const instance = ReactDOM.render(<Component />, container);
    instance.setState({value: 1});
    ReactDOM.unmountComponentAtNode(container);
    expect(cbCalled).toBe(false);
  });
  it('should warn when rendering a class with a render method that does not extend React.Component', () => {
    const container = document.createElement('div');
    class ClassWithRenderNotExtended {