Assigning globalThis.window = undefined creates an own property. On Ubuntu that shadows the host window, so later editor tests throw when ProseMirror reads window.MutationObserver.
Assigning globalThis.window = undefined creates an own property. On Ubuntu that shadows the host window, so later editor tests throw when ProseMirror reads window.MutationObserver.