Zod, mocking fake data that works with refine?
Does anyone have some experience with zod mocking libaries? Docs list like six of them but my most important feature would be to get it working with refine().
I understand it's not possible to automate refine(), but I need it to get that working without huge hassle.
4 Replies
what exactly is it you're trying to do? is to generate fake data based on a zod schema?
Yes
What I do is defining a generate function for each model using
faker
for data population like so:
Seems like it's best to just do it manually like you said with faker.