You can create a mock function with jest.fn() . If no implementation is given, the mock ... mockImplementation can also be used to mock class constructors:
確定! 回上一頁