ntraykov's avatar

Mocking the document object when writing Vue test

I want to test whether the document.location.hostname is correctly set in my component, but in my tests, I don't know how to mock the document object. I tried with jsdom, but without any success.

Any help would be great! Thank you!

0 likes
0 replies

Please or to participate in this conversation.