https://kotlinlang.org logo
#kotest
Title
# kotest
i

Ivan Pavlov

06/22/2022, 10:01 PM
Does beforeSpec work for js tests? This test actually runs and fails with
IllegalStateException: IN TEST
. The same test in jvm works as expected failing with
IllegalStateException: IN BEFORE SPEC
Copy code
class SimpleTest : FunSpec({
    beforeSpec {
        error("IN BEFORE SPEC")
    }
    test("test") {
        error("IN TEST")
    }
})
s

sam

07/04/2022, 2:59 PM
Might be a bug related to the fact JS tests are always instantiated early.
4 Views