For something like this, I might break out fast-check for testing. It’s good at generating a wide range of values for a given type, and could help you get good test coverage without having to hand-author a lot of repetitive error inputs.
Appwrite - The Open Source Firebase alternative introduces iOS support . Appwrite is an open source backend server that helps you build native iOS applications much faster with realtime APIs for authentication, databases, files storage, cloud functions and much more!
Generating dummy entities with random data for tests based on types
4 projects | reddit.com/r/typescript | 23 Jun 2022
Fast-check: How it works
1 project | news.ycombinator.com | 2 Dec 2021
Advent of PBT 2021
1 project | dev.to | 30 Nov 2021
Improve our code with the property-based testing and fast-check
1 project | dev.to | 3 Nov 2021
Can you guarantee that a function has no bugs?
1 project | dev.to | 16 Aug 2021