I think this shouldn't pass:

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

but it does.
static childContextTypes = {
        flag: PropTypes.bool,
      };
      state = {
        flag: true,
      };
      getChildContext() {
        return {
          flag: this.state.flag,
        };
      }
      render() {
        return <div>{this.props.children}</div>;
      }
    }
    class Child extends React.Component {