I think this shouldn't pass:

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

but it does.
render() {
        throw new Error();
      }
    }
    let instance = <BadComponent />;
    expect(ReactCurrentOwner.current).toBe(null);
    expect(() => {
      instance = ReactTestUtils.renderIntoDocument(instance);
    }).toThrow();
    expect(ReactCurrentOwner.current).toBe(null);
  });
  it('should call componentWillUnmount before unmounting', () => {
    const container = document.createElement('div');
    let innerUnmounted = false;
    class Component extends React.Component {
      render() {
        return (
          <div>
            <Inner />
            Text
          </div>
        );
      }
    }
    class Inner extends React.Component {