[WASM] Fix invalid path for test runner

Windows path has backslash separator that reads as escape character in js
This commit is contained in:
Igor Yakovlev
2022-06-18 16:02:04 +02:00
parent 27bb9a087a
commit ea0dfb50df
@@ -73,7 +73,7 @@ internal fun writeWasmUnitTestRunner(compiledFile: File): File {
val testRunnerFile = compiledFile.parentFile.resolve("runUnitTests.mjs")
testRunnerFile.writeText(
"""
import exports from '${compiledFile.absolutePath}';
import exports from './${compiledFile.name}';
exports.startUnitTests?.();
""".trimIndent()
)