I'm converting some tests from <#C0BE6KSRW|spek> t...
# kotest
s
I'm converting some tests from #spek to kotest. Commonly I have this pattern:
Copy code
lateinit var fixture: SomeFixture

beforeEach {
    fixture = createFixture()
}
In Spek, there's a shorthand for that using a property delegate:
Copy code
val fixture by memoized { createFixture() }
Does kotest have anything similar? I think I could create one easily myself as an extension function; just want to make sure it doesn't exist already.
c
just use isolationMode InstancePerLeaf and
val fixture = createFixture()
https://kotest.io/docs/framework/isolation-mode.html
s
That makes sense, thanks for the suggestion 👍