阅读背景:

[React Testing] Hide console.error Logs when Testing Error Boundaries with jest.spyOn

来源:互联网 

When testing an error boundary, your console will be filled with console.error calls from React. Those can be a real distraction from the rest of the output for your tests. Let’s clean those up with jest.spyOn.When testing an error boundary, your console wil




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: