JavaScript testing #10. Advanced mocking with Jest and React Testing Library
In the fourth part of this series, we’ve learned the basics of mocking API calls. However, there are often situations where we would like to test various more demanding cases. So, in this article, we implement more advanced examples on how to mock with Jest. Creating a simple React component Let’s start by creating a […]