How to reproduce Jest “Network Error” - floating bug locally

我怕爱的太早我们不能终老 提交于 2020-06-29 04:11:09

问题


When I run tests on pipe lines occasionally I am getting "Network Error" for different files (because of axios requests). Though some times I don't get errors at all.

But for some reason I can't get that error locally no matter what I do. I use same node version v12.16.1. I have tried to reduce testTimeout to 200 (I got bunch of errors but the were different).

  1. So the question is why that error is inconsistent?
  2. How I can make it consistent and reproduce it locally?

来源:https://stackoverflow.com/questions/62591323/how-to-reproduce-jest-network-error-floating-bug-locally

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!