Jest test `expect().toThrowError()` passes but still logs an uncaught error to the console

后端 未结 0 888
失恋的感觉
失恋的感觉 2021-02-19 06:53

I\'m using Jest and react-testing-library to test a "modal" component in a "portal" that needs to me mounted to a DOM node. This DOM node is configurable but

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