Replies: 1 comment 2 replies
-
Can you share how you want to go about testing this? While testing it directly with overriding |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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