I think this shouldn't pass:

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

but it does.
componentWillUnmount() {
        innerUnmounted = true;
      }
      render() {
        return <div />;
      }
    }
    ReactDOM.render(<Component />, container);
    ReactDOM.unmountComponentAtNode(container);
    expect(innerUnmounted).toBe(true);
  });
  it('should warn when shouldComponentUpdate() returns undefined', () => {
    class Component extends React.Component {
      state = {bogus: false};
      shouldComponentUpdate() {
        return undefined;
      }
      render() {
        return <div />;
      }
    }
    const instance = ReactTestUtils.renderIntoDocument(<Component />);
    expect(() => instance.setState({bogus: true})).toWarnDev(
      'Warning: Component.shouldComponentUpdate(): Returned undefined instead of a ' +
        'boolean value. Make sure to return true or false.',
      {withoutStack: true},
    );
  });
  it('should warn when componentDidUnmount method is defined', () => {
    class Component extends React.Component {