TIL... How to test a window-redirect using Mocks
window.location = "newPath";
But that’s hard to test for. Thankfully there is a better way:
You can then mock the assign function and test for that call! My thanks to the creators of jest for that insight!