Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Use
Object.defineProperty()
for stubbing global properties
Direct assignments to `window` properties fails silently if they are not writable, so `Object.defineProperty()` should be used when stubbing global properties. Closes jestjs#9287
- Loading branch information