hi, is possible to mock the appContext in common t...
# multiplatform
c
hi, is possible to mock the appContext in common tests, KMM Mobile ?
for example to get a string resource text
i
Sure. In tests you can access context using : ApplicationProvider.getApplicationContext() https://developer.android.com/reference/androidx/test/core/app/ApplicationProvider
You add this into actual android test code. You don't need context to run tests on iOS>
c
can you give me a sample code or gide please?
this must be run in Android tests or is able to run in common tests?