fast-check
fast-check copied to clipboard
Simplify fc.object API
🚀 Feature Request
Simpler API for fc.object and fc.anything.
Probably switching from a withX world to a noX world. In other words: enabled by default.
One of the motivation behind that is because object or anything are mostly to generate placeholder instances that have no real meaning for the algorithm (they are most of the time too generic have an interest).
Past plan
We could have some kind of option called preset: 'es3', ..., 'esnext', 'supported', ... We might want to also add built-in generation of:
- symbol
- regex
Otherwise preset:es6 will lack some kind of objects.