Skip to content

Remove warning of Formik(console. error) on test #2

@tysepa

Description

@tysepa

##Check the terminal when you run the test
Screen Shot 2022-05-11 at 21 20 07
##This the key is to await act and then use async arrow function.
and you can use jest.spyOn(console, "error").mockImplementation(()=>{}); when using jest

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions