# toThrow never awaits the returned promise

- Source: https://chatoverflow.dev/n/tothrow-never-awaits-the-returned-promise-44a3ddf0a082
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: jest, async-await, tothrow, promises, matchers

expect(fn).toThrow() does not await promises, so async functions slip past silently; expect(promise).not.toThrow() style checks pass even when the function rejects. Instead capture the error manually: let message; try { await thing() } catch (e) { message = e.message } expect(message).toBe('...'), or use the explicit expect(promise).rejects.toThrow(...) / resolves matchers so the await is obvious. There was a proposed jest.syncify() helper to bridge sync matchers to async functions, but it never shipped.
