Testing concurrenct code using XCTest #67
Closed
WJacobsNL
started this conversation in
Lessons & Modules
Replies: 1 comment
-
|
@WJacobsNL I'd recommend migrating to @observable, which should be doable and makes your code future proof: If that's not possible, you can decide to use Combine with Hope that helps! |
Beta Was this translation helpful? Give feedback.
0 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.
-
While reading this lesson, specifically the part:
Led me to believe that I could use the
withObservationTrackingon my viewModel, which is an ObservableObject, with @published properties. I never got my test to pass though, and according to some searching (and prompting) it seems that it only works with Observable classes.Now I was wondering, what would be the best way to observe the change of an @published property in my test?
Beta Was this translation helpful? Give feedback.
All reactions