📜  无法设置属性 formatTime of #<Object>它只有一个吸气剂 - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:00.179000             🧑  作者: Mango

代码示例1
import * as serverRequests from "./../../utils/serverRequests";

jest.mock('./../../utils/serverRequests', () => ({
  __esModule: true,
  ...jest.requireActual('./../../utils/serverRequests')
}));

const getRequestMock = jest.spyOn(serverRequests, "getRequest");