How to mock window.location.href with Jest + Vuejs?

Currently, I am implementing unit test for my project and there is a file that contained window.location.href. I want to mock this to test and here is my sample code: it("method A should work cor...