DEV Community

Discussion on: Why isn't this unit test catching an error from this async/await function?

Collapse
 
lexlohr profile image
Alex Lohr

In Jest it is even simpler, you just need not forget expect.assertions(numberOfAsyncAssertions);: jestjs.io/docs/en/tutorial-async