Jest testing mock functions __mocks__ TypeError: x is not a function

后端 未结 0 365
遇见更好的自我
遇见更好的自我 2021-01-17 06:14

I have a class called call.js which has a toggleAudio function. I am trying to mock this function so I can use it in my tests. The code is as follows:

My test:

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