Skip to content
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

Add createMockedWindow helper for mocking window.parent or other explicit window instances #575

Merged
merged 6 commits into from
Jul 23, 2024

Conversation

simonihmig
Copy link
Owner

@simonihmig simonihmig commented Jul 23, 2024

Closes #175 (although, you cannot mock window.top, since that is a non-configurable and non-writeable property, which you cannot set, even with a proxy)

@simonihmig simonihmig merged commit 43c8c43 into master Jul 23, 2024
11 checks passed
@simonihmig simonihmig deleted the mock-other-window-refs branch July 23, 2024 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How do you mock the parent or top properties?
1 participant