wasyl
03/09/2020, 3:17 PMInstancePerTest
isolation mode? The way we’re using kotest right now is with DescribeSpec
, so we have bunch of describe
and context
blocks which set up tests for the it
blocks which contain the assertions.
Iiuc, InstancePerLeaf
will create new instance of the test for each it
block, and execute everything that leads to it. InstancePerTest
would create new instance not only for it
block, but also for describe
and context
, is that correct?wasyl
03/09/2020, 3:18 PMInstancePerTest
useful for some other spec type, or would I sometimes want to execute code up to describe
for example, without any `it`s?sam
03/09/2020, 6:19 PM