Mock window object behaviors

jest.spyOn(window, "close").mockImplementation(() => {});
window.HTMLElement.prototype.scrollIntoView = function () {};