mockReturnValue (Promise.reject(error)); await addFollowing(req, res, next); expect(next).toBeCalledWith(error); }); }); jest.mock 메서드에 모킹할 모듈의 ...
確定! 回上一頁