I have a library which is going to be transformed to KMP and for testing I have a few json files inside resources directory. If the library has no JS target, I could use Okio, but if it has JS, I should transform those json files to strings or I could use them via Okio?
m
mbonnin
01/04/2022, 7:21 PM
If it's unit tests running on your dev machine, you can always use okio to read the file locally
mbonnin
01/04/2022, 7:22 PM
I've been doing this successfully. The only issue is that the current working directory for JS tests isn't the same as other platforms https://youtrack.jetbrains.com/issue/KT-49125
j
Javier
01/04/2022, 8:19 PM
Do you have it in a public repo? Thank you for your answer 🙂