That is why jest.spyOn() and .mockImplementation() looks like a best option for mocking existing window variables. jest.spyOn(object ...
確定! 回上一頁