I think this shouldn't pass:

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

but it does.
constructor(props) {
            super(props);
            lifecycle.push('getInitialState');
            this.state = {name: 'TestComponent'};
          }
          UNSAFE_componentWillMount() {
            lifecycle.push('componentWillMount');
          }
          componentDidMount() {
            lifecycle.push('componentDidMount');
          }
          render() {
            lifecycle.push('render');
            return <span>Component name: {this.state.name}</span>;
          }
          UNSAFE_componentWillUpdate() {
            lifecycle.push('componentWillUpdate');
          }
          componentDidUpdate() {
            lifecycle.push('componentDidUpdate');
          }
          shouldComponentUpdate() {