Using jest.spyOn. A better approach in this case would be to use a spy. Spies have all the features of a mock function, but leave you with ...
確定! 回上一頁