I think this shouldn't pass:

```js
    expect(() => {
      expect(() => {
        throw new Error('haha') // no warning
      }).toWarnDev(
        'nope',
      );
    }).toThrow('haha');
```

but it does.
constructor(props, context) {
        super(props, context);
        this.state = {
          hasUpdatedState: false,
        };
      }
      UNSAFE_componentWillMount() {
        instance = this;
      }
      shouldComponentUpdate() {
        return mockFn();
      }
      render() {
        return <div>{this.state.hasUpdatedState}</div>;
      }
    }
    ReactDOM.render(<Component />, div);
    expect(instance).toBeDefined();
    expect(mockFn).not.toBeCalled();
    instance.setState({hasUpdatedState: true}, () => {
      expect(mockFn).toBeCalled();
      expect(instance.state.hasUpdatedState).toBe(true);
      done();
    });
  });
  it('should return a meaningful warning when constructor is returned', () => {
    class RenderTextInvalidConstructor extends React.Component {