Skip to content

Add create_gql_mock_factory helper

Paul Slaughter requested to merge fe-graphql-mock-factory into master

What does this MR do?

This MR follows up on !52346 (closed) and adds a helper that adapts graphql-mock-factory so that we can automatically generate graphql responses based on the schema. This also strengthens our specs since the mocks must conform to the schema.

We also move the require(....gitlab_schema.graphql) into it's own module and update the integration spec helpers to reference this.

Merge request reports