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

Javier

11/17/2021, 10:20 PM
I added JS target to one library and it is failing due SyntaxError caused by Kotest
Copy code
@Test
    fun same_version() {
        assertTrue { Version("1.0.0") == Version("1.0.0") } // works
        Version("1.0.0") shouldBe Version("1.0.0") // fails
    }
JS +
@Test
annotation works with Kotest? I have seen samples with the kotest test style in docs, but not sure about the annotation style one
s

sam

11/17/2021, 10:22 PM
annotation spec ?
or is @Test jetbrains
j

Javier

11/17/2021, 10:25 PM
@Test is jetbrains
kotlin.test.Test
s

sam

11/17/2021, 10:26 PM
What's the error
j

Javier

11/17/2021, 10:28 PM
SyntaxError at D\Repos\Kotlin\semantic versioning kmp\semantic versioning core\commonTest\kotlin\VersionTest.kt10
I am going to try to find the exact issue and I will file it
s

sam

11/17/2021, 11:02 PM
ok great thank you
🙂 1
j

Javier

11/18/2021, 12:10 AM
It was my bad, I was messing multiple errors, sorry!
s

sam

11/18/2021, 12:10 AM
ok cool