Using JUnit5 with KotlinJS
This is my build.gradle.kts script:
import org.jetbrains.kotlin.gradle.plugin.Kotlin2JsPluginWrapper
plugins {
id("kotlin2js") version "1.2.71"
}
val junit5Version = "5.3.1"
val kotlinVersion = plugins.getPlugin(Kotlin2JsPluginWrapper::class.java).kotlinPluginVersion
repositories {
mavenCentral()
}
dependencies {
compile(kotlin("stdlib-js"))
testImplementation("org.jetbrains.kotlin
kotlin test js$kotlinVersion")...