Mocking window.location in Jest
Recently I had to write some tests for a piece of JavaScript code that used window.location. This...
Tags: javascript, jest, testing