Mocking with Jest can have a weird learning curve. Let's see how to mock those hooks.
How to create a UAT environment for a React application every time a PR is created to the default branch.
A guide to using React Hooks Testing Library
Learn how to capture network calls for stubbing, assertions, and more.
Automatic Jest Snapshot Testing with Storybook Stories
A Guide to Managing External Storybook State
My strategy to retrieve any element with the Testing Library API
How to write unit tests that check if you're routing requests correctly using React Router with Jest
A guide to Testing Library's UserEvent API
A window into React component testing
Where to put tests, how to write fixtures and the awesomeness of test parametrization
Develop Fast Test Thoroughly
How to create your own reusable axios mock request function for Jest.
What you should do instead.
How to test changes to the local storage on synchronous cases and asynchronous ones using the testing library.
Make your JavaScript tests deeper, leaner, and faster with these two Jest methods