Vue test utils along with the Jest framework is what I'm using for unit testing my vue file. For some reason, I'm facing difficulties in testing the following line of code:
const inBrowser = typeof window !== 'undefined';
My main query revolves around setting JavaScript Window as undefined. Is there a specific method to achieve this and set the window as an undefined Browser Object Model (BOM)?