DavidTimms / DavidTimms/zod-fast-check
Generate z.string().regex() using fc.stringMatching()
Open
- Dominant language
- TypeScript
- Stars
- 130
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Description
https://fast-check.dev/blog/2023/05/30/whats-new-in-fast-check-3-10-0/
`fc.stringMatching()` to generate regular expressions from Zod `z.string().regex()` would be extremely useful.
https://fast-check.dev/docs/core-blocks/arbitraries/combiners/string/#stringmatching
Generating strings from the refined schema this way would enable property-based testing without filtering input string arbitraries. This missing mapping would really round out the capabilities of ZodFastCheck.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.