Apologies if wrong channel: how should I override ...
# android
v
Apologies if wrong channel: how should I override
activityResultRegistry
in Activity tests? The docs have a clear example of testing Fragments, but that approach is not valid for Activities.
i
This recent blog post explains how you can inject your
ActivityResultRegistry
, which would apply to any type of component, the activity included: https://blog.stylingandroid.com/activity-result-contract-outside-the-activity/
👍🏼 1