Apr 23, 2022
Thanks to Mike (link below) I now know an improved way to do this in Jest. I'm not sure how I missed it initially but I sure am happy to have shorter code now. Thanks Mike!
```
expect(mightThrowErr()).rejects.toThrow(Error('oops'));
```
Thanks to Mike (link below) I now know an improved way to do this in Jest. I'm not sure how I missed it initially but I sure am happy to have shorter code now. Thanks Mike!
```
expect(mightThrowErr()).rejects.toThrow(Error('oops'));
```
Software builder, people manager, topical deep-dive enthusiast