Kotlin Frontend Plugin Unit Tests


#1

Has anyone been able to run Unit Tests with the frontend plugin?

I fail…:frowning:


#2

Location of transpiled tests did the trick:

compileTestKotlin2Js {
  kotlinOptions.metaInfo = true
  kotlinOptions.outputFile = "$project.buildDir.path/js-tests/${project.name}-tests.js"
  kotlinOptions.sourceMap = true
  kotlinOptions.moduleKind = 'commonjs'
  kotlinOptions.main = "call"
}