MCPcopy
hub / github.com/colinhacks/zod / catch.test.ts

File catch.test.ts

packages/zod/src/v4/classic/tests/catch.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { expect, expectTypeOf, test } from "vitest";
2import { z } from "zod/v4";
3
4test("basic catch", () => {

Callers

nothing calls this directly

Calls 15

catchMethod · 0.80
stringMethod · 0.80
transformMethod · 0.80
optionalMethod · 0.80
numberMethod · 0.80
booleanMethod · 0.80
safeEncodeMethod · 0.80
encodeMethod · 0.80
pipeMethod · 0.80
parseMethod · 0.65
parseAsyncMethod · 0.65
toUpperCaseMethod · 0.65

Tested by

no test coverage detected