fast-check icon indicating copy to clipboard operation
fast-check copied to clipboard

Simplify fc.object API

Open dubzzz opened this issue 3 years ago • 0 comments

🚀 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.

dubzzz avatar Dec 10 '20 20:12 dubzzz