jest mocking global functions used in vuex

前端 未结 0 422
盖世英雄少女心
盖世英雄少女心 2020-12-21 17:02

Is there any way in Jest to mock global functions declared in plugins ? I declare global function named reqApi using inject and used it in store by $reqApi now when I use j

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