我是新手,我想模拟一个返回 Promise<boolean>. 的函数我这样做了: service.changeBookingAsync = jest.fn().mockReturnValue(boolean); 但我收到了这个错误:.
確定! 回上一頁