• Lukas Eipert's avatar
    Add a helper to spy on window.location · 4d1389e6
    Lukas Eipert authored
    The window.location interface is read only in newer versions of jest.
    This breaks our manual mocks / spys on that interface.
    
    With a helper which replaces `window.location` with a mocked interface
    we are able to circumvent that problem.
    4d1389e6
mock_window_location_helper.js 1.09 KB