我正在使用Jest测试REST API,每当我发出fetch请求时,我都会收到TypeError: Network request failed响应。所有对REST API的调用都在应用程序上工作,并且只在我的Jest测试中失败。it('should find a result via fetch',
我从我的代码中得到了以下错误:如果你能帮助我,那就太棒了!我在用discord.js!(/root/eternity-bot/eternity-bot/index.js:21:33) at TypeError:无法读取未定义at files.forEach.file files.forEach.fileat fs.readdir (/root/eternity-bot/eternity-bot/index.js:18:9) at FSReqWrap.oncomplete (fs.