Passing top-level mock function into jest.mock implementation

前端 未结 0 717
天命终不由人
天命终不由人 2021-02-01 04:33

I would like to test that a function being returned from a mocked function is called in a test in jest.

I have the following mock:



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