How to mock a function that returns a function using jest

前端 未结 0 489
后悔当初
后悔当初 2020-12-14 07:18

I am trying to mock the function that returns another function. However, I am not sure how to get this done using jest. Thanks in advance.

  1. Should return success
相关标签:
回答
  • 消灭零回复
提交回复
热议问题