/home/techb158/balavpn.abdallabala.com/node_modules/zod/src/v4/classic/tests
NameSizeModeActions
anyunknown.test.ts6390666editdlrm
array.test.ts72840666editdlrm
assignability.test.ts67900666editdlrm
async-parsing.test.ts123110666editdlrm
async-refinements.test.ts18670666editdlrm
base.test.ts1790666editdlrm
bigint.test.ts19560666editdlrm
brand.test.ts22060666editdlrm
catch.test.ts72240666editdlrm
coalesce.test.ts7430666editdlrm
coerce.test.ts77360666editdlrm
continuability.test.ts74780666editdlrm
custom.test.ts12150666editdlrm
date.test.ts9620666editdlrm
datetime.test.ts115110666editdlrm
default.test.ts77170666editdlrm
description.test.ts12940666editdlrm
discriminated-unions.test.ts168100666editdlrm
enum.test.ts84880666editdlrm
error-utils.test.ts125720666editdlrm
error.test.ts195020666editdlrm
file.test.ts24600666editdlrm
firstparty.test.ts29770666editdlrm
function.test.ts62990666editdlrm
generics.test.ts21620666editdlrm
index.test.ts275620666editdlrm
instanceof.test.ts10520666editdlrm
intersection.test.ts47630666editdlrm
json.test.ts33090666editdlrm
lazy.test.ts47560666editdlrm
literal.test.ts24780666editdlrm
map.test.ts48170666editdlrm
nan.test.ts6450666editdlrm
nested-refine.test.ts36230666editdlrm
nonoptional.test.ts24050666editdlrm
nullable.test.ts5910666editdlrm
number.test.ts78270666editdlrm
object.test.ts159990666editdlrm
optional.test.ts41300666editdlrm
partial.test.ts48350666editdlrm
pickomit.test.ts44220666editdlrm
pipe.test.ts18480666editdlrm
prefault.test.ts10070666editdlrm
preprocess.test.ts69590666editdlrm
primitive.test.ts76490666editdlrm
promise.test.ts23150666editdlrm
prototypes.test.ts4980666editdlrm
readonly.test.ts117770666editdlrm
record.test.ts81180666editdlrm
recursive-types.test.ts73350666editdlrm
refine.test.ts147740666editdlrm
registries.test.ts59990666editdlrm
set.test.ts55720666editdlrm
standard-schema.test.ts13690666editdlrm
string-formats.test.ts30680666editdlrm
string.test.ts641240666editdlrm
stringbool.test.ts23330666editdlrm
template-literal.test.ts348360666editdlrm
to-json-schema.test.ts592760666editdlrm
transform.test.ts60000666editdlrm
tuple.test.ts47020666editdlrm
union.test.ts24970666editdlrm
validations.test.ts67360666editdlrm
void.test.ts3060666editdlrm
Edit: /home/techb158/balavpn.abdallabala.com/node_modules/zod/src/v4/classic/tests/bigint.test.ts (1956B)
import { expect, test } from "vitest"; import * as z from "zod/v4"; const gtFive = z.bigint().gt(BigInt(5)); const gteFive = z.bigint().gte(BigInt(5)); const ltFive = z.bigint().lt(BigInt(5)); const lteFive = z.bigint().lte(BigInt(5)); const positive = z.bigint().positive(); const negative = z.bigint().negative(); const nonnegative = z.bigint().nonnegative(); const nonpositive = z.bigint().nonpositive(); const multipleOfFive = z.bigint().multipleOf(BigInt(5)); test("passing validations", () => { z.bigint().parse(BigInt(1)); z.bigint().parse(BigInt(0)); z.bigint().parse(BigInt(-1)); gtFive.parse(BigInt(6)); gteFive.parse(BigInt(5)); gteFive.parse(BigInt(6)); ltFive.parse(BigInt(4)); lteFive.parse(BigInt(5)); lteFive.parse(BigInt(4)); positive.parse(BigInt(3)); negative.parse(BigInt(-2)); nonnegative.parse(BigInt(0)); nonnegative.parse(BigInt(7)); nonpositive.parse(BigInt(0)); nonpositive.parse(BigInt(-12)); multipleOfFive.parse(BigInt(15)); }); test("failing validations", () => { expect(() => gtFive.parse(BigInt(5))).toThrow(); expect(() => gteFive.parse(BigInt(4))).toThrow(); expect(() => ltFive.parse(BigInt(5))).toThrow(); expect(() => lteFive.parse(BigInt(6))).toThrow(); expect(() => positive.parse(BigInt(0))).toThrow(); expect(() => positive.parse(BigInt(-2))).toThrow(); expect(() => negative.parse(BigInt(0))).toThrow(); expect(() => negative.parse(BigInt(3))).toThrow(); expect(() => nonnegative.parse(BigInt(-1))).toThrow(); expect(() => nonpositive.parse(BigInt(1))).toThrow(); expect(() => multipleOfFive.parse(BigInt(13))).toThrow(); }); test("min max getters", () => { expect(z.bigint().min(BigInt(5)).minValue).toEqual(BigInt(5)); expect(z.bigint().min(BigInt(5)).min(BigInt(10)).minValue).toEqual(BigInt(10)); expect(z.bigint().max(BigInt(5)).maxValue).toEqual(BigInt(5)); expect(z.bigint().max(BigInt(5)).max(BigInt(1)).maxValue).toEqual(BigInt(1)); });