diff --git a/src/type-checker-type.test.ts b/src/type-checker-type.test.ts new file mode 100644 index 00000000..d64a7251 --- /dev/null +++ b/src/type-checker-type.test.ts @@ -0,0 +1,15 @@ +import { fromPartial } from "@total-typescript/shoehorn"; +import { expect, test } from "vitest"; +import { typeCheckerType } from "./type-checker-type"; + +test("return `any` in case of errors", async () => { + expect( + typeCheckerType( + fromPartial({ + getProject() { + throw new Error(); + }, + }), + ), + ).toBe("any"); +});