How to test asynchronous logic inside a react component with jest and react testing library?

后端 未结 0 1791
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-19 10:14

Summary / TLDR

  • In the test spec code below, how can I successfully implement the async logic inside the setTimeout() function according to React
相关标签:
回答
  • 消灭零回复
提交回复
热议问题