Document s.optional()
Opened this issue · 0 comments
FagnerMartinsBrack commented
There is no documentation for the s.optional( ... )
API, only s.optional({ optional: true })
.
The supported behavior is that It accepts either a matcher or a primitive value in the first argument. Here are the tests.