unable to handle async error in jest when error is thrown in if-else statement

后端 未结 0 509
北荒
北荒 2021-01-26 20:24

I used all the techniques to test a route that throws an error in the if statement but I\'m unable to pass the test.

router.post(\'/api/users/signUp\', async (req         


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