Skip to content

fix(mocks): use valid mock values for GeoJSON and CountryName#3091

Open
ifeanyi-ugwu wants to merge 1 commit into
graphql-hive:masterfrom
ifeanyi-ugwu:fix/valid-mock-values
Open

fix(mocks): use valid mock values for GeoJSON and CountryName#3091
ifeanyi-ugwu wants to merge 1 commit into
graphql-hive:masterfrom
ifeanyi-ugwu:fix/valid-mock-values

Conversation

@ifeanyi-ugwu

Copy link
Copy Markdown
Contributor

The GeoJSON and CountryName mocks returned values their scalars reject, so mocking the scalar produced a value it cannot serialize:

  • GeoJSON returned the string 'Example GeoJSON', but the scalar validates GeoJSON objects — now a valid FeatureCollection.
  • CountryName returned 'Example CountryName', which is not a real country name — now 'United States of America', matching the CountryCode mock ('US').

Both mocks returned a value their scalar rejects, so mocking the scalar
produced a value it cannot serialize:
- GeoJSON returned the string 'Example GeoJSON', but the scalar validates
  GeoJSON objects — now a valid FeatureCollection.
- CountryName returned 'Example CountryName', not a real country name —
  now 'United States of America', matching the CountryCode mock ('US').
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant