How can I mock an imported dependency with express?

后端 未结 0 1901
独厮守ぢ
独厮守ぢ 2021-02-12 01:39

I am unit-testing an express function. The express function uses an import which I want to mock (stripe). How can I mock an import while using express function? The issue is tha

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