can I mock the JavaScript window object using Jest I'm directly assigning jest.fn() to window.open.window.open = jest.fn() // ...code ...
確定! 回上一頁