How I can check error handler from try/catch block next(err) in Jest, TypeScript

前端 未结 0 1893
梦如初夏
梦如初夏 2020-12-20 01:27

How can I test my try / catch block in Jest if there is an error, how I\'m sure that catch will handle? For example I want to test controllers where they will respond to inf

相关标签:
回答
  • 消灭零回复
提交回复
热议问题