How to you use resources in `wasmJsTest` ? I got ...
# webassembly
s
How to you use resources in
wasmJsTest
? I got some bigger files in my
resources
directory I want to load as
ByteArray
(or alternatively
UInt8Array
) to perform unit tests on them.
1
o
skiko has some resources in tests - https://github.com/JetBrains/skiko/tree/master/skiko/src/commonTest/resources Also an extra karma config was necessary - https://github.com/JetBrains/skiko/blob/master/skiko/karma.config.d/wasm/config.js If you want to try to run the tests in skiko, you'd need to install emcc - https://emscripten.org/docs/getting_started/downloads.html then in skiko cd skiko ./gradlew wasmJsBrowserTest -Pskiko.wasm.enabled=true
s
Thank you!