[K/JS] Rework kotlin tests compilation to make it works with per-file granularity ^KT-61525 Fixed

This commit is contained in:
Artem Kobzar
2023-11-16 19:02:04 +00:00
committed by Space Team
parent a4b3b08e59
commit ff50d40b32
48 changed files with 2290 additions and 135 deletions
@@ -15,6 +15,7 @@ fun Test.useJsIrBoxTests(
setupV8()
dependsOn(":kotlin-stdlib:jsJar")
dependsOn(":kotlin-stdlib:jsJarForTests") // TODO: think how to remove dependency on the artifact in this place
dependsOn(":kotlin-test:kotlin-test-js-ir:jsJar")
dependsOn(":kotlin-test:kotlin-test-js-ir:compileKotlinJs")
dependsOn(":kotlin-stdlib-js-ir-minimal-for-test:compileKotlinJs")
dependsOn(":kotlin-dom-api-compat:compileKotlinJs")
@@ -24,5 +25,6 @@ fun Test.useJsIrBoxTests(
systemProperty("kotlin.js.reduced.stdlib.path", reducedStdlibPath)
systemProperty("kotlin.js.kotlin.test.path", kotlinJsTestPath)
systemProperty("kotlin.js.stdlib.klib.path", "libraries/stdlib/build/libs/kotlin-stdlib-js-$version.klib")
systemProperty("kotlin.js.kotlin.test.klib.path", "libraries/kotlin.test/js-ir/build/libs/kotlin-test-js-$version.klib")
systemProperty("kotlin.js.dom.api.compat", domApiCompatPath)
}