-
Notifications
You must be signed in to change notification settings - Fork 198
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
chore(test): add integration test cases of CPK for API lazy loading #2769
base: main
Are you sure you want to change the base?
Conversation
a0d2288
to
301268b
Compare
301268b
to
de53bfc
Compare
de53bfc
to
dd09f50
Compare
@@ -17,82 +17,82 @@ final class GraphQLLazyLoadHasOneTests: GraphQLLazyLoadBaseTest { | |||
func testConfigure() async throws { | |||
await setup(withModels: HasOneParentChildModels()) | |||
} | |||
|
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.
this file can be reverted if only whitespace changes.
@@ -17,86 +17,86 @@ final class GraphQLLazyLoadDefaultPKTests: GraphQLLazyLoadBaseTest { | |||
func testConfigure() async throws { | |||
await setup(withModels: DefaultPKModels()) | |||
} | |||
|
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.
this file can be reverted if only whitespace changes.
|
||
try await mutate(.create(parent)) | ||
try await mutate(.create(child)) | ||
try await mutate(.update(child)) |
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.
will this call the update mutation event even if there are no changes to child model?
|
||
try await mutate(.create(parent)) | ||
try await mutate(.create(child)) | ||
await waitForExpectations([onCreate], timeout: 10) |
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.
It'd be great if we can we use a constant for timeout value
Issue #
Description
General Checklist
Security oriented best practices and standards are followed (e.g. using input sanitization, principle of least privilege, etc)Given When Then
inline code documentation and are named accordinglytestThing_condition_expectation()
If breaking change, documentation/changelog update with migration instructionsBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.