Skip to content
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

[zod-mock] Fix parseString #217

Merged
merged 1 commit into from
Jan 20, 2025
Merged

[zod-mock] Fix parseString #217

merged 1 commit into from
Jan 20, 2025

Conversation

kotaro0522
Copy link
Contributor

zod-mock can override string mocks with the stringMap option.
However, this doesn't work when the validation has regex (e.g. z.string().regex(/^\+[1-9]\d{1,14}$/)) since the regexCheck logic is placed before the stringMap logic.
This PR will fix the issue.

Copy link

nx-cloud bot commented Aug 15, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 6b01c57. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 2 targets

Sent with 💌 from NxCloud.

@Brian-McBride Brian-McBride merged commit 5ffa0a0 into anatine:main Jan 20, 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.

2 participants