mipa
mipa

Reputation: 10640

How do you get binary data into a unit test for the Kotlin multiplatform `wasmJs` target?

I have a pure Kotlin multiplatform library which targets wasmJs in addition to other targets. Building the library works without problem but I have a problem getting the unit tests to work. The problem is that my unit tests require some data to be loaded as a ByteArray from a file (via kotlinx-io) and that doesn't seem to be supported for wasmJs. The question now is: how do you get such data into a unit test for the wasmJs target?

Upvotes: 0

Views: 43

Answers (0)

Related Questions