Morning. I imagine this has come up before but is ...
# kotest
c
Morning. I imagine this has come up before but is there any reason to use
StringSpec
over
FreeSpec
?
FreeSpec
seems better because it allows nesting. Not every test file requires nesting but seems more consistent to use the single style.
e
Slightly related> https://github.com/kotest/kotest/issues/3386 I personally agree and prefer to use FreeSpec 🙂
m
Not long ago one of the maintainers told me here that
StringSpec
will be deprecated in the next major version in favour of
FreeSpec
, which effectively is a superset of the former.