• 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
project_spec.js 10.2 KB