<@U0PQ0GVLM> Thanks for the article! It would have...
# multiplatform
j
@marcinmoskala Thanks for the article! It would have helped me a lot when I was researching it and now it can help new people 🙂 Everything seems to be recognizable with my setup Maybe a second part could be how to set up debugging in Intellij for those Javascript tests. I will quickly add what I discovered for JS. (For Java I only changed class path for common tests to JVM) - You need to add source maps to compilation otherwise the debugger does not stop at debug point. For gradle:
Copy code
[compileKotlin2Js, compileTestKotlin2Js]*.configure {
    kotlinOptions.moduleKind = "commonjs"
    kotlinOptions.sourceMap = true
}
- You need to disable “Do not step into javascript libraries” otherwise the debugger does not step into the common code. - You need to add a build/gradle task to your test runner otherwise the javascript is not build with latest code when you start debug
Copy code
task prepareForMocha(dependsOn: [compileTestKotlin2Js, populateNodeModules])