how to mock the store.dispatch function when using mockStore? with jest

前端 未结 0 1467
自闭症患者
自闭症患者 2021-02-01 04:58

I have this in my react component

console.log(await store.dispatch(getAndSaveImages()));

and my test is:

import configureMockStore         


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