Any warnings driven off of `warnAboutDeprecatedLifecycles` should use `shared/lowPriorityWarning` rather than `fbjs/lib/warning` to avoid thrashing automated tests.
state = {};
      static getDerivedStateFromProps() {
        return null;
      }
      componentWillMount() {
        throw Error('unexpected');
      }
      render() {
        return null;
      }
    }
    expect(() => ReactDOMServer.renderToString(<Component />)).toWarnDev(
      'Component: componentWillMount() is deprecated and will be removed in the next major version.',
    );
  });
  
  
  it('should warn about deprecated lifecycle hooks', () => {
    class Component extends React.Component {