Replies: 1 comment 1 reply
-
Can you share how you want to go about testing this? While testing it directly with overriding |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In addition to the well known
dismiss
dependency, there's also the less knownisPresented
, which indicates a presentation from a TCA context. Specifically, it's the value ofdismiss.dismiss
, theDismissEffect
's closure. However, the only public init forDismissEffect
only takes a non-optional closure, so there's no way to testisPresented = false
, which we use to detect when our features originate without a TCA root, a common occurrence in a mixed TCA / UIKit codebase. How can we test this logic?Beta Was this translation helpful? Give feedback.
All reactions