wondering what the approaches are for kotest to us...
# kotest
c
wondering what the approaches are for kotest to use context-receivers? Working with Arrow 1.2 using context receivers, as a shim have introduced the below
withContext
method:
Copy code
test("Arrow context-receiver / Raise sample test") {
            withContext {
                something.raiseContextRequiredMethod(args).shouldBe(true)
                something.anotherRaiseContextRequiredMethod(args).shouldBe(false)
            }
        }

        public inline fun <Error> TestScope.withContext(
            @BuilderInference block: Raise<Error>.() -> Unit
        ): Unit = recover(block) { fail("Expected to succeed, but raised $it") }
Are there better approaches?