How to set state in test when using enzyme and jest?

前端 未结 0 1434
悲&欢浪女
悲&欢浪女 2020-12-11 05:47

To start I\'m conditionally rendering a component that\'s reliant on the useState hook being set as a result of useEffect hook. Here\'s a code sample:

functio         


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