-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ABW-4014] Bump TCA to 1.17.0 #1423
Conversation
@@ -27,12 +27,12 @@ extension CloudBackupClient: TestDependencyKey { | |||
) | |||
|
|||
static let testValue = Self( | |||
isCloudProfileSyncEnabled: unimplemented("\(Self.self).isCloudProfileSyncEnabled"), | |||
isCloudProfileSyncEnabled: noop.isCloudProfileSyncEnabled, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use unimplemented(description:placeholder:)
? Same for other occurrences.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because the tests where these clients are used fail when unimplemented
is used
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Start the fail with the update to 1.17.0?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we can use Sargon .sample
values for noop
in most clients? The fact that we throw is just because we did not have sample
value for most types before Sargon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That’s a good idea, but it’ll take some time to go through all the noops, so I’m leaving it as a future improvement.
@@ -12,6 +12,6 @@ extension LocalAuthenticationClient: TestDependencyKey { | |||
queryConfig: { .biometricsAndPasscodeSetUp }, | |||
authenticateWithBiometrics: { true }, | |||
setAuthenticatedSuccessfully: unimplemented("\(Self.self).setAuthenticatedSuccessfully"), | |||
authenticatedSuccessfully: unimplemented("\(Self.self).authenticatedSuccessfully") | |||
authenticatedSuccessfully: unimplemented("\(Self.self).authenticatedSuccessfully", placeholder: AsyncLazySequence([]).eraseToAnyAsyncSequence()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better to define noop to follow the same pattern
Jira ticket: ABW-4014
Description
unimplemented
now requires aplaceholder
parameter for cases where the placeholder cannot be generated.swiftui-navigation
has been renamed toswift-navigation
.