I think this shouldn't pass:

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

but it does.
static childContextTypes = {
        foo: PropTypes.string,
        depth: PropTypes.number,
      };
      state = {
        flag: false,
      };
      getChildContext() {
        return {
          foo: 'bar',
          depth: 0,
        };
      }
      render() {
        let output = <Child />;
        if (!this.state.flag) {
          output = <span>Child</span>;
        }
        return output;
      }
    }
    class Child extends React.Component {