UNPKG

zod

Version:

TypeScript-first schema declaration and validation library with static type inference

8 lines (6 loc) 179 B
import { expect, test } from "vitest"; import * as z from "zod/v4"; test("test this binding", () => { const parse = z.string().parse; expect(parse("asdf")).toBe("asdf"); });