The simplest and most common way of creating a mock is jest.fn() method. If no implementation is provided, it will return the undefined value.
確定! 回上一頁