How to use jest to test an asynchronous epic with axios-mock-adapter mock data?

前端 未结 0 558
渐次进展
渐次进展 2021-02-01 07:44

when I run testing code, actual$ returns an empty array, expected returns the mock data. the reason is api.ugc.wishlist.getAllFolders() is asynchronous. how should I write the t

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