我有一个Jest测试,我正在为一个进行API调用的函数编写测试。如果API调用返回403,则应调用节点模块中的函数。我正在尝试使用mock jest函数来测试这一点,但我无法让测试使用我正在制作的模块的模拟版本。 file.spec.js import file from './nodeModule';
import api from './api&
我成功地打开浏览器并进行身份验证。然而,在那之后,我得到了一个错误,程序不再继续。Authentication successful.next_chunkgoogleapiclient.errors.ResumableUploadError: <HttpError 403If it is recently created, enable Drive API by visiting then re