test("Test description", () => { const t = () => { throw new TypeError(); }; expect(t).toThrow(TypeError); });