I have a library which is going to be transformed ...
# squarelibraries
j
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
If it's unit tests running on your dev machine, you can always use okio to read the file locally
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
Do you have it in a public repo? Thank you for your answer 🙂
m