Home

Testing hooks requiring Apollo mocks

Steps that you need to take:

  1. Override the Apollo mocks within the test.
  2. Create a wrapper component.
  3. Render the hook with the wrapper that uses the client.

Repository

https://github.com/okeeffed/developer-notes-nextjs/content/visibuild/Testing-Hooks-Requiring-Apollo-Mocks

Sections


Related