I think this shouldn't pass:

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

but it does.
render() {
        return <div>{this.props.children}</div>;
      }
    }
    let childRenders = 0;
    class Child extends React.Component {
      render() {
        childRenders++;
        return <div />;
      }
    }
    const container = document.createElement('div');
    const child = <Child />;
    ReactDOM.render(<Parent>{child}</Parent>, container);
    ReactDOM.render(<Parent>{child}</Parent>, container);
    expect(childRenders).toBe(1);
  });
  it('should pass context when re-rendered for static child', () => {
    let parentInstance = null;
    let childInstance = null;
    class Parent extends React.Component {