Best way for trying to check what a jest.mock function has been called with

前端 未结 0 672
遇见更好的自我
遇见更好的自我 2021-01-23 06:16

I have the following code in a test where I am mocking the function getName, getName in the real code is passed state and an id, it uses the id to return a single name in a map

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