I think this shouldn't pass:

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

but it does.
}).toThrow(
        'Received warning unexpectedly does not include a component stack'
      );
    });
    it('fails if some warnings do not contain a stack', () => {
      expect(() => {
        expect(() => {
          console.error('Hello\n    in div');
          console.error('Good day\n    in div');
          console.error('Bye');
        }).toWarnDev(['Hello', 'Good day', 'Bye']);
      }).toThrow(
        'Received warning unexpectedly does not include a component stack'
      );
      expect(() => {
        expect(() => {
          console.error('Hello');
          console.error('Good day\n    in div');
          console.error('Bye\n    in div');
        }).toWarnDev(['Hello', 'Good day', 'Bye']);
      }).toThrow(
        'Received warning unexpectedly does not include a component stack'
      );
      expect(() => {
        expect(() => {
          console.error('Hello\n    in div');
          console.error('Good day');
          console.error('Bye\n    in div');
        }).toWarnDev(['Hello', 'Good day', 'Bye']);
      }).toThrow(