Does beforeSpec work for js tests? This test actua...
# kotest
i
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
Might be a bug related to the fact JS tests are always instantiated early.