Open tysepa opened 2 years ago
await
act
and you can use jest.spyOn(console, "error").mockImplementation(()=>{}); when using jest
jest.spyOn(console, "error").mockImplementation(()=>{});
anyone can use this way hands up
Check the terminal when you run the test
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