Skip to content

test : added vitest unit tests for auth.dto Zod schemas#1896

Open
tmdeveloper007 wants to merge 1 commit into
gopaljilab:mainfrom
tmdeveloper007:#1891
Open

test : added vitest unit tests for auth.dto Zod schemas#1896
tmdeveloper007 wants to merge 1 commit into
gopaljilab:mainfrom
tmdeveloper007:#1891

Conversation

@tmdeveloper007

Copy link
Copy Markdown
Contributor

Closes #1891.

Summary of What Has Been Done:
Added vitest unit tests for all six auth DTO Zod schemas in server/validation/auth.dto.ts. Covers valid inputs, invalid inputs, edge cases, trimming, and lowercase normalization.

Changes Made:

  • server/validation/auth.dto.test.ts (new file, 32 test cases)

Impact it Made:

  • 32 new passing tests on the server project

Note: Please assign this PR to the tmdeveloper007 account.

Cover all six auth DTO schemas: registerDTOSchema,
loginDTOSchema, forgotPasswordDTOSchema, resetPasswordDTOSchema,
verifyEmailDTOSchema, verifyOtpDTOSchema. 32 passing tests.
@vercel

vercel Bot commented Jun 25, 2026

Copy link
Copy Markdown

@tmdeveloper007 is attempting to deploy a commit to the gopaljilab's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added the type:testing Adding, updating, or fixing unit/integration tests. label Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:testing Adding, updating, or fixing unit/integration tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test : add vitest unit tests for auth.dto Zod schemas

1 participant