Testing onClose callback which is triggered by clicking outside component -React Testing Library and Jest

后端 未结 0 1555
孤城傲影
孤城傲影 2021-02-04 19:28

The popup has a click away listener which closes it when a click event occurs outside the component. I need to test that the popup has closed.

it.only(\'clicking          


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