Skip to content

Instantly share code, notes, and snippets.

@mksglu
Last active February 4, 2021 08:37
Show Gist options
  • Save mksglu/8a510d8b5fafb262727bf7a307d69ae1 to your computer and use it in GitHub Desktop.
Save mksglu/8a510d8b5fafb262727bf7a307d69ae1 to your computer and use it in GitHub Desktop.
https://stackoverflow.com/questions/59018071/mock-usedispatch-in-jest-and-test-the-params-with-using-that-dispatch-action-in/61875674#61875674
https://dev.to/fredrikbergqvist/mocking-redux-useselector-hook-2ale
https://redux.js.org/recipes/writing-tests#connected-components
https://ttfb.test.traveloka.com/testing-react-component-using-enzyme-jest-part-4/
https://gist.github.com/krawaller/e5d40217658fa132f3c3904987e467cd
https://dev.to/zaklaughton/the-only-3-steps-you-need-to-mock-an-api-call-in-jest-39mb
https://www.loupetestware.com/post/mocking-api-calls-with-jest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment