diff --git a/src/__tests__/createSchemaForm.test.tsx b/src/__tests__/createSchemaForm.test.tsx index 0366673..4ba342c 100644 --- a/src/__tests__/createSchemaForm.test.tsx +++ b/src/__tests__/createSchemaForm.test.tsx @@ -22,6 +22,7 @@ import { useReqDescription, useTsController, } from "../FieldContext"; +import { expectTypeOf } from "expect-type"; import { createUniqueFieldSchema } from "../createFieldSchema"; const testIds = { @@ -793,7 +794,7 @@ describe("createSchemaForm", () => { .refine((_) => true) .transform((a) => a.a)} onSubmit={(data) => { - data.startsWith("cool"); // just type checks as a string + expectTypeOf(data).toBeString(); }} props={{ a: {