-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
chore(docs): add useStaticQuery to docs for mocking Gatsby #12526
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great--thanks!
Thinking it's getting pretty high-time to make this a package, similar to what we do with cypress-gatsby.
It'd be a suite of utils and mocks that make working with core Gatsby APIs even easier from a unit testing perspective.
I'll open an issue on this tomorrow with some of my thoughts!
That sounds really intriguing and curious to see the discussion on it. Experimenting with some higher level integration tests which may have multiple sub components that are using StaticQuery. I also wonder if that may be a place of either increased documentation and/or related to this package idea. |
Description
Adds
useStaticQuery
to the docs for mocking out Gatsby related to unit testing.