I am doing this:
expect(async () => {await doSomething()}).toThrow('myThrownErrorMessage');
but this throws an error in the terminal:
(node:12725) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 575): Error: myThrownErrorMessage
Is this simply a case of node capturing the error before Jest does?