How to test if a React Context is being set within a Provider with useEffect

前端 未结 0 662
攒了一身酷
攒了一身酷 2020-12-03 03:36

I am having a hard time trying to write a jest unit test, to verify if the useEffect statement within my ContextProvider is running correctly.

Here what I am trying t

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