Mock even more
- replaces
localStorage
in tests with a mock, same API but ephemeral storage (thanks to @alisdair) - adds a
Proxy
to all nested objects, likewindow.navigator
. This allows to override even read-only properties, likewindow.navigator.userAgent
- fixes support for relative URLs when setting
window.location.href