expect(() => {
            ReactDOM.render(<Component />, document.createElement('div'));
        }).toWarnDev(
            'Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n' +
            'Component uses getDerivedStateFromProps() but also contains the following legacy lifecycles:\n' +