If you are mocking an object method, you can use jest.spyOn . ... This property is an object that has all the mock state information about ...
確定! 回上一頁