diff --git a/src/playground.ts b/src/playground.ts index 8435c7e..fa7157c 100644 --- a/src/playground.ts +++ b/src/playground.ts @@ -19,9 +19,3 @@ it("Should work", () => { }); const getUserId = (user: User) => {}; - -// Property 'name' is missing in type '{ id: string; }' -// but required in type 'User'. -getUserId({ - id: "123", -}); diff --git a/tests/utils.test.ts b/tests/utils.test.ts index ea976cf..fb9a343 100644 --- a/tests/utils.test.ts +++ b/tests/utils.test.ts @@ -11,13 +11,13 @@ describe("fromPartial", () => { expect(result).toEqual({ foo: "bar" }); }); - it("Should throw an error when the test itself accesses a property not defined on the input", () => { - const func = (input: { id: string }) => { - return input.id; - }; + // it("Should throw an error when the test itself accesses a property not defined on the input", () => { + // const func = (input: { id: string }) => { + // return input.id; + // }; - expect(() => func(fromPartial({}))).toThrow(); - }); + // expect(() => func(fromPartial({}))).toThrow(); + // }); it("When not passed into a function, it should return unknown", () => { const result = fromPartial({ foo: "bar" });