【发布时间】:2022-01-12 09:32:18
【问题描述】:
任何人都可以分享任何与 javascript 中的边缘案例测试相关的示例,以及任何与使用 jest 在 javascript 中进行功能测试相关的示例。
const activityFunction: AzureFunction = async function (context: Context): Promise<string> {
try {
let mappingArr = [] as any;
mapCategoryNameToNameOfNetwork(mappingArr, context);
return
} catch (err) {
context.log.error("Error while mapping category name to name of networks", err)
throw err;
}
};
I want to test this function as this is giving blank response. I am not able to test it like i was testing for normal functions. Do anyone have any solution that how i should move ahead with this?
提前感谢您的帮助。
【问题讨论】:
-
欢迎来到 Stack Overflow!请拿起tour(你会得到一个徽章!),看看周围,通读help center,特别是How do I ask a good question?、What types of questions should I avoid asking?和What topics can I ask about here?
标签: javascript node.js jestjs azure-functions