Any warnings driven off of `warnAboutDeprecatedLifecycles` should use `shared/lowPriorityWarning` rather than `fbjs/lib/warning` to avoid thrashing automated tests.
componentWillReceiveProps() {}
      componentWillMount() {}
      componentWillUpdate() {}
      render() {
        return null;
      }
    }
    const shallowRenderer = createRenderer();
    expect(() => shallowRenderer.render(<ComponentWithWarnings />)).toWarnDev(
      'Warning: ComponentWithWarnings: componentWillMount() is deprecated and will ' +
        'be removed in the next major version.',
    );
    expect(() => shallowRenderer.render(<ComponentWithWarnings />)).toWarnDev([
      'Warning: ComponentWithWarnings: componentWillReceiveProps() is deprecated ' +
        'and will be removed in the next major version.',
      'Warning: ComponentWithWarnings: componentWillUpdate() is deprecated and will ' +
        'be removed in the next major version.',
    ]);
    
    shallowRenderer.render(<ComponentWithWarnings />);
  });
  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 {