how to test button trigget onSubmit form on react testing library

前端 未结 0 1423
攒了一身酷
攒了一身酷 2021-02-09 05:58

so I am trying to test that when the button is clicked the onSubmit function is getting triggered.

but I keep getting a test error saying that the onSubmit function isnt

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