Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
1
import
{ expect, expectTypeOf, test } from
"vitest"
;
2
import
{ z } from
"zod/v4"
;
3
4
test(
"basic catch"
, () => {
Callers
nothing calls this directly
Calls
15
catch
Method · 0.80
string
Method · 0.80
transform
Method · 0.80
optional
Method · 0.80
number
Method · 0.80
boolean
Method · 0.80
safeEncode
Method · 0.80
encode
Method · 0.80
pipe
Method · 0.80
parse
Method · 0.65
parseAsync
Method · 0.65
toUpperCase
Method · 0.65
Tested by
no test coverage detected