Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/colinhacks/zod
/ record-constructor.test.ts
File
record-constructor.test.ts
packages/zod/src/v4/core/tests/record-constructor.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ expect, test } from
"vitest"
;
2
import
* as z from
"zod/v4"
;
3
4
test(
"record should parse objects with non-function constructor field"
, () => {
Callers
nothing calls this directly
Calls
6
string
Method · 0.80
symbol
Method · 0.80
toJSONSchema
Method · 0.80
parse
Method · 0.65
safeParse
Method · 0.65
enum
Method · 0.45
Tested by
no test coverage detected