Jest - mock return value from a module that returns a function that returns an object with that function

后端 未结 0 374
囚心锁ツ
囚心锁ツ 2021-01-15 02:02

I\'m trying to mock the return value (or implementation) of the functions inside another module\'s function with Jest. I need to test different scenarios (function throws er

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