Hi all, Is there any specific configuration requi...
# javascript
a
Hi all, Is there any specific configuration required to run js test when we use IR backend. Before using IR backend for js target my js test were running but after switching to IR non of the js test are running. Here is my build gradle file: https://github.com/ashishkujoy/kotlin-js-jvm-library/blob/main/build.gradle.kts
These are the task I can see with IR backend
a
are you developing for node or browser?
a
node
r
Perhaps you need something like this:
Copy code
kotlin {
    js {
        nodejs {
            testTask { 
                useMocha()
            }            
        }
    }
}
a
@Robert Jaros I tried out that but It did not worked out
r
And have you tried
binaries.executable()
instead of
binaries.library()
?
a
I think it might be an issue with the Kotest framework, i tried switching to kotlin test and with that I am able to run test.
https://github.com/ashishkujoy/kotlin-js-jvm-library/tree/with-kotlin-test on this branch I am using kotlin test and able to see the js test is running
were as on main branch I am using kotest and here test is not running, https://github.com/ashishkujoy/kotlin-js-jvm-library/tree/main
r
Are you using current version of Kotest? I see they support IR since 4.4.2 released 6 days ago.
a
I tried with snapshot version as well
o
Same here. With the legacy JS backend, I get correct results for every single JS test like this: •
Json serialization[frontend, browser, ChromeHeadless89.0.4389.72, Linuxx86_64]
– passed •
Json cycle serialization[frontend, browser, ChromeHeadless89.0.4389.72, Linuxx86_64]
– passed With the IR JS backend, all I get is this, even if I make tests fail: •
kotestJavascript[frontend, browser, ChromeHeadless89.0.4389.72, Linuxx86_64]
– passed Tried with latest Kotest release 4.4.2.