I'm using Jest as my testing framework, which includes jest.fn() for mocks/spies. ... The key is using jests spyOn method on the object's prototype .
確定! 回上一頁