Jest: having trouble keeping a reference of a mock function with `jest.fn()`

前端 未结 0 1022
一向
一向 2021-01-24 08:43

I wanted to mock out a function and make sure it has executed a certain number of times. My implementation is roughly like

         


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