React testing library formik form submission case

前端 未结 0 1012
情书的邮戳
情书的邮戳 2020-12-11 23:29

I have the following test:

it("should handle the onSubmit", async () => {
    const onSubmit = jest.fn()

    const {getByText} = render(
                


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