Posts about "Testing"
React Testing Setup06 September 2020 · 4 minutes to read
Testing your code is like having a lifesaver, everyone should have one. Here, I'm going to set up an environment of safety, one that will you the confidence you need to ship your React code in the best shape possible. Let's assume you…Read →
Mocking HTTP requests with Mock Service Worker12 June 2020 · 4 minutes to read
There is a lot of talk these days about if when you are testing your API integration you should be mocking your client (fetch/axios...etc.) or not. To answer your question, we want our tests to be as reliable as possible, so if they work…Read →
Mocking a Server Error with cypress18 February 2020 · 2 minutes to read
When doing cypress end-to-end tests, it is very tempting to only be testing the happy path most of the time. The happy path, is the one we think users will follow , the ideal journey that will take a user from state A to B. But users…Read →