In jest , jest.fn(implementation) allows one to create a mock function with an custom implementation. Mocking a chained API using this alone ...
確定! 回上一頁