mocking axios in jest fails with “axios is not a function”

前端 未结 0 462
小蘑菇
小蘑菇 2021-01-30 02:57

I have tested this in different wasy but I cannot figure out how to do this right. May be because I\'m new to Jest?

My mocks/axios.js file:



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