Any warnings driven off of `warnAboutDeprecatedLifecycles` should use `shared/lowPriorityWarning` rather than `fbjs/lib/warning` to avoid thrashing automated tests.
componentWillMount() {}
      render() {
        return null;
      }
    }
    expect(() => ReactDOMServer.renderToString(<Component />)).toWarnDev(
      'Warning: Component: componentWillMount() is deprecated and will be removed ' +
        'in the next major version.',
    );
    
    ReactDOMServer.renderToString(<Component />);
  });
  describe('react-lifecycles-compat', () => {
    const polyfill = require('react-lifecycles-compat');
    it('should not warn about deprecated cWM/cWRP for polyfilled components', () => {
      class PolyfilledComponent extends React.Component {
        state = {};
        static getDerivedStateFromProps() {
          return null;
        }
        render() {
          return null;
        }
      }
      polyfill(PolyfilledComponent);
      ReactDOMServer.renderToString(<PolyfilledComponent />);
    });
  });
});