在我的项目中,我用蓝鸟取代了本地的承诺实现。现在,我的应用程序通过在控制台上发送以下内容来产生大量警告:
(node:1503) Warning: a promise was created in a handler at usr/src/marketing-tasksnode_modules/highland/lib/index.js:517:24 but was not returned from it, see http://goo gl/
我正在编写来自dynamodB的getitems的node.js中的Lambda函数。表是employee,其中emo_Id是分区键。}, ":Id":emp_Id我得到的错误是:“消息”:“参数中缺少必需的键' key‘”,"code":"MissingRequiredParameter",
我知道错误的解决方法是在代码中添加: K
我真的需要帮助来处理全局的vars和函数。我将我的问题简单如下:假设我想要测试的模块名为‘nedTest.js’。它的结构如下:因为我只需要在needTest.js中测试main函数,所以在我的测试文件中,我首先使用import main from '../needTest.js'。我的问题是:函数main不仅需要三个输入p1,p2和p3,它还依赖于一些全局变量或函数,如isA,isB,isC。如何在我的测试文件中</e