Skip to content
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

Add tests for remaining transforms with defer #590

Open
wants to merge 27 commits into
base: master
Choose a base branch
from

Conversation

sbarker2
Copy link
Collaborator

adding defer test for the remaining transforms:

  • NadelServiceTypeFilterTransform
  • NadelRenameArgumentInputTypesTransform
  • also added a test where it throws an error with transforms

sbarker2 and others added 25 commits August 19, 2024 12:11
# Conflicts:
#	test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/transforms/DeferredDeepRenameTestSnapshot.kt
#	test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/transforms/RenamedTypeIsDeferredTestSnapshot.kt
Copy link
Contributor

@felipe-gdr felipe-gdr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tests don't look right to me, can you please have a look at my comments?

| ],
| "label": "slow-defer",
| "data": {
| "rename__slow__underlyingSlow": null,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where's the error in the result?

| "data": {
| "me": {
| "profilePicture": {
| "path": "https://atlassian.net/wiki/aa-avatar/5ee0a4ef55749e0ab6e0fb70"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no incremental data in the result

result = """
| {
| "data": {
| "aErrors": {}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's not incremental data in the assertion here as well.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this test, there is not supposed to be incremental data, because there is no data in the aErrors field.

This test is to ensure that the BError type does not get returned in the aErrors field

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants