Jest mockResolvedValue return undefined with multiple args

后端 未结 0 1641
无人及你
无人及你 2021-01-12 03:58

I am trying to write a unit test for my NodeJs code. I am mocking my API call by using mockResolvedValue.

This is my unit test:

const { search } = requ         


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