Skip to content

Commit 20cb56c

Browse files
CopilotBenLorantfy
andcommitted
Add comprehensive tests for z.date() handling including e2e OpenAPI tests
Co-authored-by: BenLorantfy <4398635+BenLorantfy@users.noreply.github.com>
1 parent 845cbc5 commit 20cb56c

23 files changed

Lines changed: 3390 additions & 2731 deletions

packages/nestjs-zod/src/__e2e_tests__/openapi.test.ts

Lines changed: 1921 additions & 1658 deletions
Large diffs are not rendered by default.

packages/nestjs-zod/src/assert.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
export function assert(condition: unknown, message: string = 'Assertion failed'): asserts condition {
2-
if (!condition) {
3-
throw new Error(`[nestjs-zod] ${message}`);
4-
}
1+
export function assert(
2+
condition: unknown,
3+
message = 'Assertion failed'
4+
): asserts condition {
5+
if (!condition) {
6+
throw new Error(`[nestjs-zod] ${message}`)
7+
}
58
}
6-

0 commit comments

Comments
 (0)