I think this shouldn't pass:

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

but it does.
console.error('Good day');
          console.error('Bye\n    in div');
        }).toWarnDev(['Hello', 'Good day', 'Bye'], {withoutStack: 4});
      }).toThrow(
        'Expected 4 warnings without a component stack but received 1'
      );
    });
    it('fails if withoutStack is invalid', () => {
      expect(() => {
        expect(() => {
          console.error('Hi');
        }).toWarnDev('Hi', {withoutStack: null});
      }).toThrow('Instead received object');
      expect(() => {
        expect(() => {
          console.error('Hi');
        }).toWarnDev('Hi', {withoutStack: {}});
      }).toThrow('Instead received object');
      expect(() => {
        expect(() => {
          console.error('Hi');
        }).toWarnDev('Hi', {withoutStack: 'haha'});
      }).toThrow('Instead received string');
    });
    it('fails if the argument number does not match', () => {
      expect(() => {
        expect(() => {
          console.error('Hi %s', 'Sara', 'extra');
        }).toWarnDev('Hi', {withoutStack: true});
      }).toThrow('Received 2 arguments for a message with 1 placeholders');