Introduction
Jest is a popular, open-source test framework for JavaScript. We can use Jest to create mocks in our test - objects that replace real objects in our code while it's being tested.
In our previous series on unit testing techniques using Sinon.js, we covered how we can use