How to test Async Storage with Jest?

前端 未结 6 829
悲哀的现实
悲哀的现实 2020-12-05 18:02

I\'m building an app with React Native. I want to minimize how often I communicate to the database, so I make heavy use of AsyncStorage. There\'s a lot of room for bugs in t

6条回答
  •  一向
    一向 (楼主)
    2020-12-05 18:31

    For anyone else to get here, asyncStorage also needs a callback, some libs use this

提交回复
热议问题