tysepa / tipy

build apps together
0 stars 0 forks source link

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

Open tysepa opened 2 years ago

tysepa commented 2 years ago

Check the terminal when you run the test

Screen Shot 2022-05-11 at 21 20 07

This the key is to await actand then use async arrow function.

and you can use jest.spyOn(console, "error").mockImplementation(()=>{}); when using jest

tysepa commented 2 years ago

anyone can use this way hands up