Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Good support for mocking responses, tests #18

Open
avivey opened this issue Jan 9, 2019 · 0 comments
Open

Good support for mocking responses, tests #18

avivey opened this issue Jan 9, 2019 · 0 comments

Comments

@avivey
Copy link

avivey commented Jan 9, 2019

I think this should be high in the roadmap:
Make it easy/fun for application writers to write mock gql responses, to support their tests.

This includes:

  • Check the mock used in the test matches the query & schema used.
  • Allow a mocked response to contain "don't-care" values (which the test writer knows aren't important for the specific test) and sentinel values (which the author will want to check for identity).
  • Allow a basic mocked response to be written for a test class, and then 'patched" in place for each test with specific changes.
  • Maybe automagically generate a mocked response, à la https://github.com/marak/Faker.js/ ?
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

No branches or pull requests

1 participant