Skip to content

v6: adjust MessageProcessor schema line assertions - #4459

Merged
trevor-scheer merged 1 commit into
graphiql-6from
trevor/fix-message-processor-test
Aug 7, 2026
Merged

v6: adjust MessageProcessor schema line assertions#4459
trevor-scheer merged 1 commit into
graphiql-6from
trevor/fix-message-processor-test

Conversation

@trevor-scheer

@trevor-scheer trevor-scheer commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

MessageProcessor.spec.ts asserts the definition ranges of a type in the generated schema by absolute line number. The Test type grew by three lines when the json custom-scalar field from #4448 merged in from main and landed alongside the query builder fields already on this branch. This updates the expected line numbers.

Test plan

  • yarn test passes for graphql-language-service-server (9 files, 116 passing, 1 skipped)
  • Vitest Unit Tests goes green on this PR, and on a v6 PR rebased on top of it

The `Test` type in the generated schema grew by three lines once the
`json` custom-scalar field from #4448 landed alongside the query builder
fields already on this branch, so the type definition ranges shifted.
Only the expected line numbers change, exactly as the note above these
assertions anticipates.

This only shows up on `graphiql-6`: the test passes on `main`, where the
query builder fields are absent.
@changeset-bot

changeset-bot Bot commented Aug 7, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 07b44c9

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@trevor-scheer
trevor-scheer marked this pull request as ready for review August 7, 2026 04:23
@trevor-scheer
trevor-scheer enabled auto-merge (squash) August 7, 2026 04:23
@trevor-scheer
trevor-scheer merged commit c5a4ec5 into graphiql-6 Aug 7, 2026
12 checks passed
@trevor-scheer
trevor-scheer deleted the trevor/fix-message-processor-test branch August 7, 2026 04:27
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.

1 participant