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 = {
          color: 'green',
        };
      }
      render() {
        return <Apple color={this.state.color} ref="apple" />;
      }
    }
    class Apple extends React.Component {
      state = {
        cut: false,
        slices: 1,
      };
      shouldComponentUpdate(nextProps, nextState) {
        return shallowCompare(this, nextProps, nextState);
      }
      cut() {
        this.setState({
          cut: true,
          slices: 10,
        });
      }
      eatSlice() {