#async
Read more stories on Hashnode
Articles with this tag
Instead of it("doesn't work", async () => { const fn = async () => { throw new Error(); }; expect(await fn()).toThrow(); }); Use it("does...