How do I setup correct testing for axios in React?

后端 未结 0 1491
面向向阳花
面向向阳花 2021-02-02 00:37

I\'m using axios in React and I\'m having problems with testing

This is what I\'ve tried so far in my test.js file:

jest.mock(\'axios\');

describe(\'RssFe         


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