Mocking classes in Jest does not call the same method

前端 未结 0 1854
借酒劲吻你
借酒劲吻你 2021-01-16 03:23

I\'m trying to mock a class that is being imported into my code with require and then testing if a method of that class is getting called.

I\'ve created

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