MCPcopy
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

1import { expect, test } from "vitest";
2import * as z from "zod/v4";
3
4test("record should parse objects with non-function constructor field", () => {

Callers

nothing calls this directly

Calls 6

stringMethod · 0.80
symbolMethod · 0.80
toJSONSchemaMethod · 0.80
parseMethod · 0.65
safeParseMethod · 0.65
enumMethod · 0.45

Tested by

no test coverage detected