[WASM] Fix invalid path for test runner
Windows path has backslash separator that reads as escape character in js
This commit is contained in:
+1
-1
@@ -73,7 +73,7 @@ internal fun writeWasmUnitTestRunner(compiledFile: File): File {
|
|||||||
val testRunnerFile = compiledFile.parentFile.resolve("runUnitTests.mjs")
|
val testRunnerFile = compiledFile.parentFile.resolve("runUnitTests.mjs")
|
||||||
testRunnerFile.writeText(
|
testRunnerFile.writeText(
|
||||||
"""
|
"""
|
||||||
import exports from '${compiledFile.absolutePath}';
|
import exports from './${compiledFile.name}';
|
||||||
exports.startUnitTests?.();
|
exports.startUnitTests?.();
|
||||||
""".trimIndent()
|
""".trimIndent()
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user