You can create a mock function with jest.fn() . If no implementation is given, the mock function will return undefined when invoked.
確定! 回上一頁