I am using vue test utils - Jest framework for unit testing of my vue file. I'm not able to test the below line.
const inBrowser = typeof window !== 'undefined';
My question is how to set JavaScript Window as undefined. Is there any way to set window as undefined Browser Object Model (BOM)?