如何解决抛出的[object errorevent],请建议任何人。当我为特定方法编写测试用例时,在调试方法调用的过程中,我无法找到抛出的[object errorevent]的位置。
我越来越喜欢这个错误

Chrome 68.0.3440 (Windows 10 0.0.0): Executed 19 of 19 (2 FAILED) DISCONNECTED (1 min 7.294 secs / 0 secs)
Chrome 68.0.3440 (Windows 10 0.0.0) ERROR
  {
    "message": "An error was thrown in afterAll\n[object ErrorEvent] thrown\n[object ErrorEvent] thrown\n[object ErrorEvent] thrown\n[object ErrorEvent] thrown\n[object ErrorEvent] thrown\n[object ErrorEvent] thrown\n[object ErrorEvent] thrown\n[object ErrorEvent] thrown\n[object ErrorEvent] thrown\n[object ErrorEvent] thrown",
    "str": "An error was thrown in afterAll\n[object ErrorEvent] thrown\n[object ErrorEvent] thrown\n[object ErrorEvent] thrown\n[object ErrorEvent] thrown\n[object ErrorEvent] thrown\n[object ErrorEvent] thrown\n[object ErrorEvent] thrown\n[object ErrorEvent] thrown\n[object ErrorEvent] thrown\n[object ErrorEvent] thrown"
  }

最佳答案

我也遇到过类似的问题,在我的开发工具中检查控制台给了我更多关于这个错误的信息。添加此标志也可能有帮助:

--source-map=false

10-06 00:10