-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
fix "Unknown fragment" validation error #3861
Conversation
🦋 Changeset detectedLatest commit: ec08bb7 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@acao @dimaMachina apologies for the tag, but is there anything non-maintainers can do to help get this fix merged and released? I believe this fixes a longstanding issue that has prevented many people from using the latest version of the VS Code plugin. Thanks! |
@wenchienchen-asana Can you take a look at the two check errors ? |
I don't think they're related to this change... The Jest tests pass when I run them locally, so maybe they're flaky or there's some issue specific to the CI setup? |
I am also getting test failures as well, it seems that there were some changes to to the integration tests since I last worked on them and they are failing for me locally and in CI here. The fs mocking appears to be the culprit, which can be quite flaky. Thus this nonsensical error, which was fixed last year:
The change makes sense, but I need to get these tests working, because these tests are already designed to test for this bug, if you see the other fragment related tests in this file! update: good news! it appears related to this issue: funny thing, in @dimaMachina are we going to run into runtime/build issues if we change from |
@motemen I've confirmed the fix behaviorally, and the new test fails if I revert the change, looks awesome! the fix for |
no dice on that fixing CI as you can see 😭 I would otherwise just skip the test because this bug is so important to fix, but this integration suite is very important, so I need to give this my due diligence! |
I am going to go ahead and merge this with a failing test, because this bugfix is more important than the test currently, and I can confirm that the new test works and confirms the bugfix. I will take care of solving this test bug as a follow up after the next release. thanks everyone for your patience, and @motemen for this fix! |
`mock-fs` uses `process.binding('fs')`, so it cannot support mocking the `node:fs` import alias it seems. this should fix test failures in CI (for node 22 at least)
9975944
to
ec08bb7
Compare
oddly enough, the test passed here
either way, enjoy the latest release! thanks again! |
Thank you! |
fixes #3620
Above error occurs because it tries to parse already-parsed GraphQL documents as languages like TypeScript or so. This PR fixes this behavior.