Skip to content

Generate mock JSON for better unit tests. #3

@CreatCodeBuild

Description

@CreatCodeBuild

Create a function to generate mock JSON which represents the response from the server of a query. This allows us to write better unit tests for the IO(http) part of our client code.

Because GraphQL server's response maps to the structure of the query, it's possible to add this feature.

But, I am not sure if I should add this as a method in Query type or as a standalone function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions