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

Ivan Pavlov

11/07/2021, 8:03 AM
I have a problem with js tests. They don't seem to work and I can't figure what's wrong with my setup. Kotest version is 4.6.2. When I replace my dependencies in commonMain with snapshot dependencies in commonMain from https://github.com/kotest/kotest-examples-multiplatform and add plugin it works fine. But I didn't find any docs about multiplatform plugin for 4.6.2. Am I missing something? I'll attach some info in thread
Copy code
class SomeTest : FunSpec({
    test("Want this to fail") {
        "".shouldBeNull()
    }
})
s

sam

11/07/2021, 8:20 AM
IR support is 5.0 only which is in prerelease
i

Ivan Pavlov

11/07/2021, 8:21 AM
Did I missed this info in docs or it is just not there?
s

sam

11/07/2021, 8:21 AM
The docs on JS are for the legacy js compiler
Which are you using
5.0 will be released as soon as kotlin 1.6 is released
i

Ivan Pavlov

11/07/2021, 8:26 AM
With legacy it works, thank you. Probably it would be helpful to have this information here under Kotlin/JS tab https://kotest.io/docs/quickstart#test-framework
s

sam

11/07/2021, 8:27 AM
Yes. Please raise a pr if you have time
i

Ivan Pavlov

11/07/2021, 12:20 PM
s

sam

11/08/2021, 3:07 PM
thanks
5 Views