How to mock a non-class, non-exported variable without testbed

后端 未结 0 1493
感动是毒
感动是毒 2021-02-12 18:29

I have a larger number of services I need to test. Class test, not component test, thus I can not use Testbed, but have to mock it using let service = new MyService

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