【发布时间】:2021-11-08 11:35:04
【问题描述】:
谁能给我一个示例,说明如何在 Jest 中模拟 .then() 块和 .catch() 块 我正在尝试测试 AWS cognito.signUp().then().catch() 但返回 TypeError: cognito.signUp(...).then(...).catch is not a function
【问题讨论】:
标签: javascript amazon-web-services jestjs mocking amazon-cognito