Skip to content

Commit 23d8c83

Browse files
committed
Env test for Zod 4 that bigint is not representable.
1 parent 3d8d17a commit 23d8c83

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

express-zod-api/tests/env.spec.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ describe("Environment checks", () => {
5555
),
5656
).not.toHaveProperty("discriminator");
5757
});
58+
59+
test("bigint is not representable", () => {
60+
expect(z.toJSONSchema(z.bigint(), { unrepresentable: "any" })).toEqual(
61+
{},
62+
);
63+
});
5864
});
5965

6066
describe("Vitest error comparison", () => {

0 commit comments

Comments
 (0)