问题
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).
- So the question is why that error is inconsistent?
- How I can make it consistent and reproduce it locally?
来源:https://stackoverflow.com/questions/62591323/how-to-reproduce-jest-network-error-floating-bug-locally