import { expect, test } from "vitest"; test("coalesce", () => { expect(true).toBe(true); }); // test("nonoptional with default", () => { // const schema = z.string().optional().coalesce("hi"); // expectTypeOf().toEqualTypeOf(); // expectTypeOf().toEqualTypeOf(); // expect(schema.parse(undefined)).toBe("hi"); // }); // test("nonoptional in object", () => { // const schema = z.object({ hi: z.string().optional().nonoptional("hi") }); // expectTypeOf().toEqualTypeOf<{ hi: string | undefined }>(); // expectTypeOf().toEqualTypeOf<{ hi: string }>(); // expect(schema.parse(undefined)).toBe("hi"); // });