Skip to content

feat(zod-mock): add support for readonly fields #242

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

Wooshaah
Copy link
Contributor

@Wooshaah Wooshaah commented Feb 27, 2025

This change adds support for zod readonly fields. before this change the innertype was ignored and the value was always set to undefined.

generateMock now generates the correct underlaying type.

fixes #195

Copy link

nx-cloud bot commented Feb 27, 2025

View your CI Pipeline Execution ↗ for commit 486eb3a.

Command Status Duration Result
nx affected:test --base=origin/main --codeCoverage ✅ Succeeded 22s View ↗

☁️ Nx Cloud last updated this comment at 2025-02-27 14:17:01 UTC

@MarbodNaassens
Copy link

MarbodNaassens commented Mar 3, 2025

When can this be reviewed? Would love to have this asap.

@Brian-McBride Brian-McBride merged commit 961ce2d into anatine:main Apr 4, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[zod-mock] Support for ZodReadonly
3 participants