We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Jest
it('Test resolves.not.toThrow()', async () => { await expect(async function() { await test(); }()).resolves.not.toThrow(); }); it('Test .rejects.toThrow()', async () => { await expect(async () => { await test(); }).rejects.toThrow(); });