How can i mock the api call named (getData) inside action using jest?

前端 未结 0 1535
太阳男子
太阳男子 2020-12-16 15:11

I am facing an issue while mocking the getData API call inside the action, what is the best way to do it?

export default class MyStore {
        @observable s         


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