Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/colinhacks/zod
/ prefault.test.ts
File
prefault.test.ts
packages/zod/src/v4/classic/tests/prefault.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 prefault"
, () => {
Callers
nothing calls this directly
Calls
9
prefault
Method · 0.80
string
Method · 0.80
optional
Method · 0.80
default
Method · 0.80
number
Method · 0.80
safeEncode
Method · 0.80
encode
Method · 0.80
trim
Method · 0.65
parse
Method · 0.65
Tested by
no test coverage detected