I have a component that should not appear on a list of hostnames, and want a cypress test to test the logic around that.
I know with my Jest unit tests, I can use delete global.window.location.hostname
then global.window.location.hostname = "whatever"
but can't seem to find a Cypress equivalent.
(Ref How to mock window.location.href with Jest + Vuejs)
Any help appreciated.