-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setupWindowMock is not mocking window.location.href #586
Comments
I also tried switching to However, doing that throws a different error:
|
I assume this is in a test, that has Again here, this has test coverage, so I tend to assume something specific to your usage is in play here? One thing you can look into is to |
Yes, I inspected setupWindowMock itself and got this:
Again, this worked fine in 0.8.1 and only stopped working when bumping the major version. |
Here's what I have:
Package versions: |
When upgrading from v0.8.1 to v1.0.2, we're experiencing a regression in mocking window.location.href.
When href gets set, the test window in the browser is transitioning to foobar.com, even though the README states that it's expected to do nothing when setting the mock (other than update the value).
The text was updated successfully, but these errors were encountered: