[Wasm] Use static import for wasm imports
^KT-65777 fixed
This commit is contained in:
committed by
Space Team
parent
68e5fc7344
commit
abb5f55087
+2
-2
@@ -69,8 +69,8 @@ internal fun writeWasmUnitTestRunner(compiledFile: File): File {
|
||||
val testRunnerFile = compiledFile.parentFile.resolve("runUnitTests.mjs")
|
||||
testRunnerFile.writeText(
|
||||
"""
|
||||
import exports from './${compiledFile.name}';
|
||||
exports.startUnitTests?.();
|
||||
import { startUnitTests } from './${compiledFile.name}';
|
||||
startUnitTests?.();
|
||||
""".trimIndent()
|
||||
)
|
||||
return testRunnerFile
|
||||
|
||||
Reference in New Issue
Block a user