我一直在关注一个关于Udemy的课程,关于如何为网站创建一个聊天机器人。当尝试向Dialogflow发送POST请求以确认集成是否成功时,出现了问题。app.post("/api/df_event_query", (req, res) => { });下面是我使用rejection.To terminate the node p
我正在使用jest和testing-library/react编写单元测试。在此之前,我从未编写过任何单元测试。在写完测试之后,我得到了一个类似这样的错误。The promise rejected with the reason "TypeError: r.node.getBBox is not a function".] {}
node:internal/process/promis
下面的代码在反应中。node:internal/process/promises:246
triggerUncaughtException(err, true /* fromPromise */);originated either by throwing inside of an async function without a catch block, or by rejecting a promiseThe promise rejected with the
Jest给了我一条错误信息-- triggerUncaughtException(err, true /* fromPromiseoriginated either by throwing inside of an
async function without a catch block, or by rejecting a promiseThe promise rejected with the reason "