Skip to content

GraphQL Client: Auto generate test mocks from queries

Created by: umpox

It would be cool to look into tooling around automatically generating mocks based on the GraphQL query or Typescript types.

Here's the list of interesting libraries that might be helpful: https://www.npmjs.com/package/graphql-codegen-typescript-mock-data https://www.npmjs.com/package/ts-auto-mock https://github.com/marchaos/jest-mock-extended

Originally posted by @valerybugakov in https://github.com/sourcegraph/sourcegraph/pull/22166#discussion_r656316719

Also we should investigate how this can work for Storybook!