You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Direct assignments to `window` properties fails silently if they are not
writable, so `Object.defineProperty()` should be used when stubbing
global properties.
Closesjestjs#9287
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
🐛 Bug Report
It is a known issue (#890 (comment)) that assigning properties on
window
fails silently, yet the documentation still recommends it:https://github.com/facebook/jest/blob/v24.9.0/docs/ManualMocks.md#mocking-methods-which-are-not-implemented-in-jsdom
Can we update the docs to use
The text was updated successfully, but these errors were encountered: